diff --git a/bash b/bash deleted file mode 100755 index c7b097e..0000000 --- a/bash +++ /dev/null @@ -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" diff --git a/bash-test.sh b/bash-test.sh new file mode 100755 index 0000000..c7df645 --- /dev/null +++ b/bash-test.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if ! $(which $1 &>/dev/null); then + echo "command not found" +else + echo "$1 exists" +fi