Skip to content

Commit

Permalink
Persist data on reset (#2773)
Browse files Browse the repository at this point in the history
- Closs #2765
  • Loading branch information
Ash258 authored and rasa committed Nov 29, 2018
1 parent 384cb82 commit 4da8e3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libexec/scoop-reset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ $apps | ForEach-Object {
write-host "Resetting $app ($version)."

$dir = resolve-path (versiondir $app $version $global)
$original_dir = $dir
$persist_dir = persistdir $app $global

$install = install_info $app $version $global
$architecture = $install.architecture
Expand All @@ -74,6 +76,8 @@ $apps | ForEach-Object {
create_startmenu_shortcuts $manifest $dir $global $architecture
env_add_path $manifest $dir
env_set $manifest $dir $global
persist_data $manifest $original_dir $persist_dir
persist_permission $manifest $global
}

exit 0

0 comments on commit 4da8e3d

Please sign in to comment.