From 2ec976391fbf55b93791d787a33e25fecbc68ebe Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 15 Jul 2019 14:06:46 +0200 Subject: [PATCH] fix(bin): allow spaces in paths in checkver.ps1 and other scripts - See https://github.com/lukesampson/scoop-extras/pull/2437 --- bin/auto-pr.ps1 | 2 +- bin/checkurls.ps1 | 2 +- bin/checkver.ps1 | 2 +- bin/formatjson.ps1 | 2 +- bin/missing-checkver.ps1 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/auto-pr.ps1 b/bin/auto-pr.ps1 index 7d86610b3a..8442b45c28 100644 --- a/bin/auto-pr.ps1 +++ b/bin/auto-pr.ps1 @@ -6,4 +6,4 @@ param( if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } $autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1" $dir = "$psscriptroot/../bucket" # checks the parent dir -Invoke-Expression -command "$autopr -dir $dir -upstream $upstream $($args | ForEach-Object { "$_ " })" +Invoke-Expression -command "& '$autopr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })" diff --git a/bin/checkurls.ps1 b/bin/checkurls.ps1 index dd695e8901..5b76d590ea 100644 --- a/bin/checkurls.ps1 +++ b/bin/checkurls.ps1 @@ -1,4 +1,4 @@ if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } $checkurls = "$env:SCOOP_HOME/bin/checkurls.ps1" $dir = "$psscriptroot/../bucket" # checks the parent dir -Invoke-Expression -command "$checkurls -dir $dir $($args | ForEach-Object { "$_ " })" +Invoke-Expression -command "& '$checkurls' -dir '$dir' $($args | ForEach-Object { "$_ " })" diff --git a/bin/checkver.ps1 b/bin/checkver.ps1 index 688b9dc305..a3ddf32e64 100644 --- a/bin/checkver.ps1 +++ b/bin/checkver.ps1 @@ -1,4 +1,4 @@ if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } $checkver = "$env:SCOOP_HOME/bin/checkver.ps1" $dir = "$psscriptroot/../bucket" # checks the parent dir -Invoke-Expression -command "$checkver -dir $dir $($args | ForEach-Object { "$_ " })" +Invoke-Expression -command "& '$checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })" diff --git a/bin/formatjson.ps1 b/bin/formatjson.ps1 index 735f247ca5..84725a954a 100644 --- a/bin/formatjson.ps1 +++ b/bin/formatjson.ps1 @@ -1,4 +1,4 @@ if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } $formatjson = "$env:SCOOP_HOME/bin/formatjson.ps1" $path = "$psscriptroot/../bucket" # checks the parent dir -Invoke-Expression -command "$formatjson -dir $path $($args | ForEach-Object { "$_ " })" +Invoke-Expression -command "& '$formatjson' -dir '$path' $($args | ForEach-Object { "$_ " })" diff --git a/bin/missing-checkver.ps1 b/bin/missing-checkver.ps1 index 77f1bcbed5..ee7b77ec4d 100644 --- a/bin/missing-checkver.ps1 +++ b/bin/missing-checkver.ps1 @@ -1,4 +1,4 @@ if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } $missing_checkver = "$env:SCOOP_HOME/bin/missing-checkver.ps1" $dir = "$psscriptroot/../bucket" # checks the parent dir -Invoke-Expression -command "$missing_checkver -dir $dir $($args | ForEach-Object { "$_ " })" +Invoke-Expression -command "& '$missing_checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"