mirror of
https://github.com/laoxong/ScoopBucket
synced 2024-11-23 02:45:14 +01:00
chore(bin): Change to '$PSScriptRoot' (#5)
This commit is contained in:
parent
899aa62eff
commit
e888bff3e6
@ -5,5 +5,5 @@ param(
|
||||
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1"
|
||||
$dir = "$psscriptroot/../bucket" # checks the parent dir
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$autopr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })"
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$checkurls = "$env:SCOOP_HOME/bin/checkurls.ps1"
|
||||
$dir = "$psscriptroot/../bucket" # checks the parent dir
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$checkurls' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$checkver = "$env:SCOOP_HOME/bin/checkver.ps1"
|
||||
$dir = "$psscriptroot/../bucket" # checks the parent dir
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
|
@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$formatjson = "$env:SCOOP_HOME/bin/formatjson.ps1"
|
||||
$path = "$psscriptroot/../bucket" # checks the parent dir
|
||||
$path = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$formatjson' -dir '$path' $($args | ForEach-Object { "$_ " })"
|
||||
|
@ -1,4 +1,4 @@
|
||||
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
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$missing_checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' }
|
||||
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$result = Invoke-Pester "$psscriptroot/.." -PassThru
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$result = Invoke-Pester "$PSScriptRoot/.." -PassThru
|
||||
exit $result.FailedCount
|
||||
|
Loading…
Reference in New Issue
Block a user