Skip to content

Commit

Permalink
Fix the script for mac (#2749) (#2783)
Browse files Browse the repository at this point in the history
(cherry picked from commit bc27021)

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
  • Loading branch information
github-actions[bot] and mattleibow authored Mar 5, 2024
1 parent 66aa5b7 commit 6c0eefa
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 6c0eefa

Please sign in to comment.