Skip to content

Commit 66c1773

Browse files
committed
Prevent variable name conflict
1 parent e2c0040 commit 66c1773

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/adjustEnvVars.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ NWL="\n"
99
ORIGINAL_CFLAGS="$CFLAGS"
1010
ORIGINAL_CXXFLAGS="$CXXFLAGS"
1111

12-
PLATFORM=$(uname -s)
13-
1412
# Platform dependent commands
15-
case $PLATFORM in
13+
UNAME_S=$(uname -s)
14+
case $UNAME_S in
1615
"Linux")
1716
RMDIR="rmdir -p --ignore-fail-on-non-empty"
1817
STRIP_DEBUG="strip --strip-debug"
@@ -24,7 +23,7 @@ case $PLATFORM in
2423
STRIP_UNNEEDED="strip -u -r -x"
2524
;;
2625
*)
27-
echo "Unsupported platform: $PLATFORM" >&2
26+
echo "Unsupported platform: $UNAME_S" >&2
2827
exit 1
2928
;;
3029
esac

0 commit comments

Comments
 (0)