Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-01-12 04:54:31 +0300
committerEvan Read <eread@gitlab.com>2022-01-12 06:45:52 +0300
commit23305103bd95208967f82b0e13256709a8f83522 (patch)
tree74616ab8f1c39e910823332277b099aeca5950b8 /Rakefile
parent4172fb5ed0aa65091c02ec9cd54cacb8532ba97b (diff)
Abort if no jq is found
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 4e45918f..d85acc1c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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")