Add command testing

This commit is contained in:
2025-10-25 22:16:03 +02:00
committed by ahtlon
parent b12c28e553
commit 8d5702d93a

View File

@@ -1,6 +1,13 @@
#!/usr/bin/env bash
set -o pipefail
for command in "jq" "xq" "grep" "curl" "sed"
do
if ! command -v $command >/dev/null 2>&1
then
echo "$command could not be found"
exit 1
fi
done
#Functions---------------
get_cookie () {
if [[ $1 == "-d" ]]; then