Skip to content

Commit 07a1139

Browse files
authored
Fix for dirs with spaces create-shortcut.ps1
1 parent 00de141 commit 07a1139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create-shortcut.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ try {
3636

3737
# Set the shortcut properties
3838
$Shortcut.TargetPath = "powershell.exe"
39-
$Shortcut.Arguments = "-ExecutionPolicy Bypass -NoExit -Command `"Start-Process PowerShell -ArgumentList '-ExecutionPolicy Bypass -NoExit -File ""$mainScript""' -Verb RunAs`""
39+
$Shortcut.Arguments = "-ExecutionPolicy Bypass -NoExit -Command `"Start-Process PowerShell -ArgumentList '-ExecutionPolicy Bypass -NoExit -File `"`"$mainScript`"`"' -Verb RunAs`""
4040
$Shortcut.WorkingDirectory = $scriptDir
4141
$Shortcut.IconLocation = $iconPath
4242

0 commit comments

Comments
 (0)