Skip to content

Commit 99f6558

Browse files
authored
Fix shell syntax in version_git.sh and remove warning. (#43196)
1 parent 08ea2d8 commit 99f6558

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/version_git.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ if [ -z "$fork_master_timestamp" ]; then
8585
fi
8686

8787
build_system_directory="../.buildkite"
88-
if [[ -d "${build_system_directory}/.git" ]]; then
88+
if [ -d "${build_system_directory}/.git" ]; then
8989
build_system_commit=$(git -C "${build_system_directory}" rev-parse HEAD)
9090
build_system_commit_short=$(git -C "${build_system_directory}" rev-parse --short HEAD)
9191
else
92-
echo "Warning: The build system directory does not exist or is not a Git repo: ${build_system_directory}" >&2
9392
build_system_commit=""
9493
build_system_commit_short=""
9594
fi

0 commit comments

Comments
 (0)