Skip to content

Commit

Permalink
Check if jq is installed (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano authored Aug 26, 2024
1 parent 20afab3 commit 0c1d8ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uploader/uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ push_to_server() {
}

main() {
# Check if jq is installed
command -v jq >/dev/null 2>&1 || { echo >&2 "Error: 'jq' is required but it's not installed. Aborting."; exit 1; }

# Import configs
. config.txt

Expand Down

0 comments on commit 0c1d8ab

Please sign in to comment.