Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace code block by quotes to restore functionality #13

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scoop-backup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ if(($globals | Measure-Object).Count -gt 0) {
append 'scoop install main/sudo'

# installing each app on a new line is, unfortunately, more resilient
append ("sudo powershell -Command {`nscoop install --global " + (($globals | ForEach-Object {
append ("sudo powershell -Command `"`nscoop install --global " + (($globals | ForEach-Object {
$info = install_info $_ (Select-CurrentVersion -AppName $_ -Global:$true) $true
if($info.url) { $($info.url) } else { "$($info.bucket)/$_" }
}) -Join "`nscoop install --global ") + "`n}")
}) -Join "`nscoop install --global ") + "`n`"")
}

# finally, we install any scoop aliases
Expand Down