This commit is contained in:
Alif Rachmawadi
2022-07-19 12:00:34 +07:00
parent 9c6ea81337
commit ea686d7c56

View File

@@ -90,7 +90,11 @@ transform_path() {
fi fi
} }
if ! command -v jq; then check_command() {
command -v "$1" > /dev/null 2>&1
}
if ! check_command jq; then
echo "jq not found, please install it, https://stedolan.github.io/jq/download/" echo "jq not found, please install it, https://stedolan.github.io/jq/download/"
exit 1 exit 1
fi fi