mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
check jq
This commit is contained in:
parent
9c6ea81337
commit
ea686d7c56
1 changed files with 5 additions and 1 deletions
6
setup.sh
6
setup.sh
|
@ -90,7 +90,11 @@ transform_path() {
|
|||
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/"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue