diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2022-05-17 15:22:34 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-05-17 15:22:34 +0300 |
commit | 68bbd34bf6c5618f5bd9deb8db1ff0b3334e60cf (patch) | |
tree | d04fefb0fcf996198e4b24c053595b0e7ef650bc | |
parent | a2e49a7469d10d682651a36aba278535da2be27a (diff) |
Replace 'command' with 'which'
'command' doesn't seem to exist in the shell that Ruby uses
-rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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? |