(bash) renamed bash test file to bash-test.sh ..
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
#pid="$$"
|
|
||||||
#echo "scripts pid: ${pid}"
|
|
||||||
#echo "shells pid (hopefully): $(ps -o ppid)"
|
|
||||||
|
|
||||||
echo "pids[-2]: ${pids[-2]}"
|
|
||||||
path=$(pwd)
|
|
||||||
echo "$path"
|
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if ! $(which $1 &>/dev/null); then
|
||||||
|
echo "command not found"
|
||||||
|
else
|
||||||
|
echo "$1 exists"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user