Skip to content

Commit

Permalink
fixed issue when install path doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sugoidogo committed Jul 5, 2019
1 parent b18245b commit 2c2501f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SideQuest/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Start-BitsTransfer -Source "https://dl.google.com/android/repository/platform-to
Set-PSDebug -Off
Expand-Archive -Path "$env:temp\platform-tools-latest-windows.zip" -DestinationPath "$env:temp" -Force
Set-PSDebug -Trace 2
if(-Not (Test-Path $installPath)){
mkdir $installPath
}
Copy-Item -Path "$env:temp\platform-tools\*" -Destination "$installPath\" -Force

$PSScriptRootLegacy=split-path -parent $MyInvocation.MyCommand.Definition
Expand Down
3 changes: 3 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Start-BitsTransfer -Source "https://dl.google.com/android/repository/platform-to
Set-PSDebug -Off
Expand-Archive -Path "$env:temp\platform-tools-latest-windows.zip" -DestinationPath "$env:temp" -Force
Set-PSDebug -Trace 2
if(-Not (Test-Path $installPath)){
mkdir $installPath
}
Copy-Item -Path "$env:temp\platform-tools\*" -Destination "$installPath\" -Force

$shell.Popup("Done!")

0 comments on commit 2c2501f

Please sign in to comment.