We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2648684 commit 376630fCopy full SHA for 376630f
libexec/scoop-update.ps1
@@ -51,11 +51,14 @@ function update_scoop() {
51
scoop config SCOOP_BRANCH "$branch"
52
}
53
54
- # remove non-git scoop
55
- rm -r -force $currentdir -ea stop
+ $newdir = fullpath $(versiondir 'scoop' 'new')
56
57
# get git scoop
58
- git_clone -q $repo --branch $branch --single-branch $currentdir
+ git_clone -q $repo --branch $branch --single-branch $newdir
+
59
+ # replace non-git scoop with the git version
60
+ rm -r -force $currentdir -ea stop
61
+ mv $newdir $currentdir
62
63
else {
64
pushd $currentdir
0 commit comments