The "${arg,,}" syntax works well on dev and Jenkins OSX machines but does not work correctly on VSO build machines [likely a lower version of bash on VSO machines]. Therefore, using 'awk' to transforming to lower case. (#8497)
This commit is contained in:
parent
3e35517ce8
commit
71f22a9f37
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ done
|
||||||
argsnotargets=( )
|
argsnotargets=( )
|
||||||
for arg in ${args[@]}
|
for arg in ${args[@]}
|
||||||
do
|
do
|
||||||
if [[ ${arg,,} != '/t:'* ]] && [[ ${arg,,} != '/target:'* ]]; then
|
arglower="$(echo $arg | awk '{print tolower($0)}')"
|
||||||
|
if [[ $arglower != '/t:'* ]] && [[ $arglower != '/target:'* ]]; then
|
||||||
argsnotargets+=($arg)
|
argsnotargets+=($arg)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue