Skip to content

Commit

Permalink
Allow $dir, $original_dir and $persist_dir substitutions for shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Aug 8, 2018
1 parent a00c922 commit f3ddf0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/shortcuts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function create_startmenu_shortcuts($manifest, $dir, $global, $arch) {
$icon = [System.IO.Path]::Combine($dir, $_.item(3))
$icon = New-Object System.IO.FileInfo($icon)
}
$arguments = (substitute $arguments @{ '$dir' = $dir; '$original_dir' = $original_dir; '$persist_dir' = $persist_dir})
startmenu_shortcut $target $name $arguments $icon $global
}
}
Expand Down

0 comments on commit f3ddf0c

Please sign in to comment.