Skip to content

Commit 4cd689a

Browse files
authored
Fix common workflow issues (#61027)
1 parent 1d352fc commit 4cd689a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eng/native/build-commons.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ check_prereqs()
4848

4949
build_native()
5050
{
51-
eval "$__RepoRootDir/eng/native/version/copy_version_files.sh"
51+
if [[ ! -e "$__RepoRootDir/artifacts/obj/_version.c" ]]; then
52+
eval "$__RepoRootDir/eng/native/version/copy_version_files.sh"
53+
fi
5254

5355
targetOS="$1"
5456
platformArch="$2"
@@ -257,7 +259,7 @@ while :; do
257259
break
258260
fi
259261

260-
lowerI="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
262+
lowerI="$(echo "${1/--/-}" | tr "[:upper:]" "[:lower:]")"
261263
case "$lowerI" in
262264
-\?|-h|--help)
263265
usage

0 commit comments

Comments
 (0)