diff options
author | Evan Read <eread@gitlab.com> | 2022-01-12 04:54:31 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-01-12 06:45:52 +0300 |
commit | 23305103bd95208967f82b0e13256709a8f83522 (patch) | |
tree | 74616ab8f1c39e910823332277b099aeca5950b8 /Rakefile | |
parent | 4172fb5ed0aa65091c02ec9cd54cacb8532ba97b (diff) |
Abort if no jq is found
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -249,6 +249,9 @@ namespace :docs do # https://docs.gitlab.com/ee/development/contributing/style_guides.html#disable-lefthook-temporarily ENV['LEFTHOOK'] = '0' + # Check jq is available + abort("jq not found. Install jq and run task again.") if `command -v jq`.empty? + puts "=> (gitlab-docs): Stashing changes of gitlab-docs and syncing with upstream default branch" system("git stash --quiet -u") if git_workdir_dirty? system("git checkout --quiet main") |