Skip to content

Commit ec524cf

Browse files
committed
udpate: don't call scoop, but use get(set)_config functions
calling scoop could result into 'scoop is not recognized as command...'
1 parent 7d7facd commit ec524cf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

libexec/scoop-update.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ $quiet = $opt.q -or $opt.quiet
3838
$independent = $opt.i -or $opt.independent
3939

4040
# load config
41-
$repo = $(scoop config SCOOP_REPO)
41+
$repo = $(get_config SCOOP_REPO)
4242
if(!$repo) {
4343
$repo = "https://github.com/lukesampson/scoop"
44-
scoop config SCOOP_REPO "$repo"
44+
set_config SCOOP_REPO "$repo"
4545
}
4646

47-
$branch = $(scoop config SCOOP_BRANCH)
47+
$branch = $(get_config SCOOP_BRANCH)
4848
if(!$branch) {
4949
$branch = "master"
50-
scoop config SCOOP_BRANCH "$branch"
50+
set_config SCOOP_BRANCH "$branch"
5151
}
5252

5353
function update_scoop() {
@@ -80,7 +80,7 @@ function update_scoop() {
8080
Push-Location $currentdir
8181

8282
# Check if user configured other branch
83-
$branch = $(scoop config SCOOP_BRANCH)
83+
$branch = $(get_config SCOOP_BRANCH)
8484
if ((git_branch) -notlike "*$branch") { git_checkout $branch }
8585

8686
git_pull -q

0 commit comments

Comments
 (0)