Rename IS_MINGW_CYGWIN to IS_WINDOWS, simpler
This commit is contained in:
parent
49bf10dbd9
commit
0c2ad37f74
@ -50,10 +50,10 @@ TESTHOME="$REMOTEDIR/home"
|
||||
GIT_CONFIG_NOSYSTEM=1
|
||||
|
||||
UNAME=$(uname -s)
|
||||
IS_MINGW_CYGWIN=0
|
||||
IS_WINDOWS=0
|
||||
if [[ $UNAME == MINGW* || $UNAME == CYGWIN* ]]
|
||||
then
|
||||
IS_MINGW_CYGWIN=1
|
||||
IS_WINDOWS=1
|
||||
fi
|
||||
|
||||
export CREDSDIR
|
||||
|
@ -387,7 +387,7 @@ get_date() {
|
||||
# Needed to match generic built paths in test scripts to native paths generated from Go
|
||||
native_path() {
|
||||
local arg=$1
|
||||
if [ $IS_MINGW_CYGWIN == "1" ]; then
|
||||
if [ $IS_WINDOWS == "1" ]; then
|
||||
# Use params form to avoid interpreting any '\' characters
|
||||
printf '%s' "$(cygpath -w $arg)"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user