Cog/ci_scripts/ci_pre_xcodebuild.sh
Christopher Snowhill 2754a9fca3 [CI Scripts] Update to use command -v
Instead of `which`.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-07-06 14:44:36 -07:00

11 lines
203 B
Bash
Executable file

#!/bin/sh
BASEDIR=$(dirname "$0")
git=$(command -v git)
REPO_ROOT_PATH=$("$git" rev-parse --show-toplevel)
"$git" -C "$REPO_ROOT_PATH" fetch --unshallow --tags
"${BASEDIR}/../Scripts/genversion.sh"