From 9b426e85e0786410a9e41ce75d742a204093048d Mon Sep 17 00:00:00 2001 From: scbj Date: Mon, 23 Jun 2025 10:46:52 +0200 Subject: [PATCH] (bash) renamed bash test file to `bash-test.sh` .. --- bash | 9 --------- bash-test.sh | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100755 bash create mode 100755 bash-test.sh 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