Skip to content

Commit

Permalink
Merge pull request ceph#36618 from tspmelo/wip-backport-jq
Browse files Browse the repository at this point in the history
script/ceph-backport.sh: Check if jq is installed
  • Loading branch information
smithfarm authored Aug 14, 2020
2 parents b539ea6 + d573037 commit e5e1e30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/script/ceph-backport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,18 @@ else
fi


#
# is jq available?
#

if command -v jq >/dev/null ; then
debug "jq is available. Good."
else
error "This script needs \"jq\" in order to work, and it is not available"
abort_due_to_setup_problem
fi


#
# process command-line arguments
#
Expand Down

0 comments on commit e5e1e30

Please sign in to comment.