Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>2021-12-01 02:32:39 +0300
committerGitHub <noreply@github.com>2021-12-01 02:32:39 +0300
commit6cc2d2e47825033c37784faa3d4e1445e5e20b42 (patch)
tree59f1e83ad1622ee2ef36784ebb4ac15104f0b43a /eng/install-native-dependencies.sh
parent7eb5d98fac2423941cc487658dcfeb5ef1ea82b0 (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-xeng/install-native-dependencies.sh2
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`"