Skip to content

Commit

Permalink
Fix the script for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Feb 12, 2024
1 parent 01a3218 commit 92822a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install-android-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $sdkmanager = Join-Path "$latest" "bin" "sdkmanager$ext"
Set-Content -Value "y" -Path "yes.txt"
try {
if ($IsMacOS -or $IsLinux) {
sh -c "`"$sdkmanager`" `"$($Package.Replace(';', '\;'))`" < yes.txt"
sh -c "'$sdkmanager' '$Package' < yes.txt"
} else {
cmd /c "`"$sdkmanager`" `"$Package`" < yes.txt"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-android-platform.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $sdkmanager = Join-Path "$latest" "bin" "sdkmanager$ext"
Set-Content -Value "y" -Path "yes.txt"
try {
if ($IsMacOS -or $IsLinux) {
sh -c "`"$sdkmanager`" `"platforms\;android-$API`" < yes.txt"
sh -c "'$sdkmanager' 'platforms;android-$API' < yes.txt"
} else {
cmd /c "`"$sdkmanager`" `"platforms;android-$API`" < yes.txt"
}
Expand Down

0 comments on commit 92822a3

Please sign in to comment.