Skip to content

Commit

Permalink
Check if jq is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano committed Aug 26, 2024
1 parent 11b7fc3 commit f4f62b7
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 f4f62b7

Please sign in to comment.