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:
authorAchilleas Pipinellis <axil@gitlab.com>2022-05-17 15:22:34 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-05-17 15:22:34 +0300
commit68bbd34bf6c5618f5bd9deb8db1ff0b3334e60cf (patch)
treed04fefb0fcf996198e4b24c053595b0e7ef650bc
parenta2e49a7469d10d682651a36aba278535da2be27a (diff)
Replace 'command' with 'which'
'command' doesn't seem to exist in the shell that Ruby uses
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index ec93f2c6..cdb5820a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -277,7 +277,7 @@ namespace :docs do
ENV['LEFTHOOK'] = '0'
# Check jq is available
- abort("jq not found. Install jq and run task again.") if `command -v jq`.empty?
+ abort("jq not found. Install jq and run task again.") if `which 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?