ScoopInstaller_Main/bin/missing-checkver.ps1
Hsiao-nan Cheung e67399ad69
fix(script): use scoop prefix to correctly find scoop's path (#2878)
* fix(checkver): use scoop prefix to correctly find scoop's path

* Update checkver.ps1

* Update auto-pr.ps1

* Update checkurls.ps1

* Update formatjson.ps1

* Update missing-checkver.ps1

* Update test.ps1
2021-11-05 11:05:05 +01:00

5 lines
296 B
PowerShell

if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix 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 { "$_ " })"