Skip to content

Commit

Permalink
fix(env_add_path): Architecutre specific handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash258 committed May 30, 2020
1 parent 8a98bee commit 81ad387
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .vscode/Cosi.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
"markdown.extension.list.indentationSize": "inherit",
"markdown.extension.orderedList.marker": "one",
"markdown.extension.tableFormatter.enabled": true,
"markdown.extension.toc.githubCompatibility": true,
"markdown.extension.toc.levels": "2..6",
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
Expand Down
4 changes: 2 additions & 2 deletions lib/uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ function Uninstall-ScoopApplication {
$refdir = unlink_current $dir

uninstall_psmodule $manifest $refdir $Global
env_rm_path $manifest $refdir $Global
env_rm $manifest $Global
env_rm_path $manifest $refdir $Global $architecture
env_rm $manifest $Global $architecture

# Remove older versions
if ($Older) {
Expand Down
5 changes: 3 additions & 2 deletions libexec/scoop-reset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ foreach ($a in $apps) {
$dir = link_current $dir
create_shims $manifest $dir $global $architecture
create_startmenu_shortcuts $manifest $dir $global $architecture
env_add_path $manifest $dir
env_set $manifest $dir $global
env_add_path $manifest $dir $global $architecture
env_set $manifest $dir $global $architecture

# unlink all potential old link before re-persisting
unlink_persist_data $original_dir
persist_data $manifest $original_dir $persist_dir
Expand Down

1 comment on commit 81ad387

@Ash258
Copy link
Owner Author

@Ash258 Ash258 commented on 81ad387 Aug 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.