From 2754a9fca38a08be5a883dbd0f463e8ac51a967d Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 6 Jul 2022 14:41:18 -0700 Subject: [PATCH] [CI Scripts] Update to use `command -v` Instead of `which`. Signed-off-by: Christopher Snowhill --- Scripts/genversion.sh | 4 ++-- ci_scripts/ci_pre_xcodebuild.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/genversion.sh b/Scripts/genversion.sh index b39f83ad1..8315b2e31 100755 --- a/Scripts/genversion.sh +++ b/Scripts/genversion.sh @@ -1,8 +1,8 @@ #!/bin/sh -git=$(which git) +git=$(command -v git) -sed=$(which sed) +sed=$(command -v sed) PlistBuddy="/usr/libexec/PlistBuddy" diff --git a/ci_scripts/ci_pre_xcodebuild.sh b/ci_scripts/ci_pre_xcodebuild.sh index 273db6209..3d849266a 100755 --- a/ci_scripts/ci_pre_xcodebuild.sh +++ b/ci_scripts/ci_pre_xcodebuild.sh @@ -2,7 +2,7 @@ BASEDIR=$(dirname "$0") -git=$(which git) +git=$(command -v git) REPO_ROOT_PATH=$("$git" rev-parse --show-toplevel)