Skip to content

Commit 889134b

Browse files
committed
Bypass execution policy on Windows
1 parent eb27aaa commit 889134b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/osutils/shortcut/shortcut_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (s *Shortcut) Enable() error {
6161
}
6262
}
6363

64-
args := []string{"-File", sf.Filename(), "-dir", s.dir, "-name", s.name, "-target", s.target, "-shortcutArgs", s.args}
64+
args := []string{"-File", sf.Filename(), "-executionpolicy", "bypass", "-dir", s.dir, "-name", s.name, "-target", s.target, "-shortcutArgs", s.args}
6565

6666
if s.windowStyle != 0 {
6767
args = append(args, "-windowStyle", fmt.Sprintf("%d", s.windowStyle))

0 commit comments

Comments
 (0)