check jq
This commit is contained in:
6
setup.sh
6
setup.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user