diff options
author | Adeel Mujahid <3840695+am11@users.noreply.github.com> | 2021-12-01 02:32:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 02:32:39 +0300 |
commit | 6cc2d2e47825033c37784faa3d4e1445e5e20b42 (patch) | |
tree | 59f1e83ad1622ee2ef36784ebb4ac15104f0b43a /eng/install-native-dependencies.sh | |
parent | 7eb5d98fac2423941cc487658dcfeb5ef1ea82b0 (diff) |
Fix a few syntax issues in shell scripts (#62102)
* Fix a few syntax issues in shell scripts
* Cleanup trailing whitespace in changed files
```sh
# git remote add dotnet https://github.com/dotnet/runtime && git pull --rebase dotnet main
if uname 2>/devnull | grep -q Darwin; then
space=" "
fi
git show --name-only --pretty="" HEAD...dotnet/main |\
xargs -I{} sh -c "test -f {} && sed -i$space'' 's/[[:space:]]*$//' {}"
```
* Address CR feedback
Diffstat (limited to 'eng/install-native-dependencies.sh')
-rwxr-xr-x | eng/install-native-dependencies.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eng/install-native-dependencies.sh b/eng/install-native-dependencies.sh index a29dfdf78aa..0b6a8a07abc 100755 --- a/eng/install-native-dependencies.sh +++ b/eng/install-native-dependencies.sh @@ -22,7 +22,7 @@ if [ "$1" = "Linux" ]; then if [ "$?" != "0" ]; then exit 1; fi -elif [ "$1" = "MacCatalyst" ] || [ "$1" = "OSX" ] || [ "$1" = "tvOS" ] || [ "$1" = "iOS" ]; then +elif [[ "$1" == "MacCatalyst" || "$1" == "OSX" || "$1" == "tvOS" || "$1" == "iOS" ]]; then engdir=$(dirname "${BASH_SOURCE[0]}") echo "Installed xcode version: `xcode-select -p`" |