From 2ff4eaaafc59d1441661c40fa38131ca00989fed Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Tue, 18 Apr 2017 21:45:06 +0200 Subject: [PATCH] Add success message for created shortcuts --- lib/shortcuts.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/shortcuts.ps1 b/lib/shortcuts.ps1 index 2867e327..5f797c8c 100644 --- a/lib/shortcuts.ps1 +++ b/lib/shortcuts.ps1 @@ -13,7 +13,7 @@ function shortcut_folder() { function startmenu_shortcut($target, $shortcutName) { if(!(Test-Path $target)) { - Write-Host -f DarkRed "Can't create the Startmenu shortcut for $(fname $target): Couldn't find $target" + Write-Host -f DarkRed "Can't create a Startmenu shortcut for $(fname $target): Couldn't find $target" return } $scoop_startmenu_folder = shortcut_folder @@ -24,6 +24,7 @@ function startmenu_shortcut($target, $shortcutName) { $wsShell = $wsShell.CreateShortcut("$scoop_startmenu_folder\$shortcutName.lnk") $wsShell.TargetPath = "$target" $wsShell.Save() + success "Created a Startmenu shortcut for $(fname $target)" } # Removes the Startmenu shortcut if it exists