We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b090da8 + cc82c8b commit e0ec26cCopy full SHA for e0ec26c
mimipenguin.sh
@@ -14,6 +14,25 @@ fi
14
#Store results to cleanup later
15
export RESULTS=""
16
17
+# check if a command exists in $PATH
18
+command_exists () {
19
+
20
+ command -v "${1}" >/dev/null 2>&1
21
+}
22
23
+# check for required executables in $PATH
24
+if ! command_exists strings; then
25
+ echo "Error: command 'strings' not found in ${PATH}"
26
+ exit 1
27
+fi
28
+if ! command_exists grep; then
29
+ echo "Error: command 'grep' not found in ${PATH}"
30
31
32
+if ! command_exists python2; then
33
+ echo "Error: command 'python2' not found in ${PATH}"
34
35
36
37
# $1 = PID, $2 = output_file, $3 = operating system
38
function dump_pid () {
0 commit comments