Skip to content

Commit

Permalink
[CI Scripts] Update to use command -v
Browse files Browse the repository at this point in the history
Instead of `which`.

Signed-off-by: Christopher Snowhill <[email protected]>
  • Loading branch information
kode54 committed Jul 6, 2022
1 parent b4e3c05 commit 2754a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Scripts/genversion.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

git=$(which git)
git=$(command -v git)

sed=$(which sed)
sed=$(command -v sed)

PlistBuddy="/usr/libexec/PlistBuddy"

Expand Down
2 changes: 1 addition & 1 deletion ci_scripts/ci_pre_xcodebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BASEDIR=$(dirname "$0")

git=$(which git)
git=$(command -v git)

REPO_ROOT_PATH=$("$git" rev-parse --show-toplevel)

Expand Down

0 comments on commit 2754a9f

Please sign in to comment.