Skip to content

Commit

Permalink
upd: Add instance check to .rtpack install
Browse files Browse the repository at this point in the history
- Check with user before copying .rtpack into an instance
  • Loading branch information
jasonjgardner committed Jan 7, 2025
1 parent bd79752 commit 0f834e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion v2/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,14 @@ function Add-RunWithArguments {

$dir = Expand-Pack -Pack $FilePath

Write-Host "🚀 Ready to install!" -ForegroundColor Green
Write-Host "Ready to install!" -ForegroundColor Green
foreach ($mc in $dataSrc) {
$continue = Read-Host "Install $FilePath to $($mc.FriendlyName)? (Y/N)"

if ($continue -notlike "Y*") {
continue
}

$success = $false;

# Delete old files
Expand Down

0 comments on commit 0f834e5

Please sign in to comment.