(bash) renamed bash test file to bash-test.sh ..

This commit is contained in:
scbj
2025-06-23 10:46:52 +02:00
parent a545b29f03
commit 9b426e85e0
2 changed files with 7 additions and 9 deletions
-9
View File
@@ -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
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
if ! $(which $1 &>/dev/null); then
echo "command not found"
else
echo "$1 exists"
fi