Skip to content

Commit 3a09879

Browse files
committed
fix: add force flag
1 parent 8abb239 commit 3a09879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ func CreateJunction(location, destination string) error {
236236
exec.Command("cmd", "/C", "rmdir", destination).Run()
237237
return exec.Command("cmd", "/C", "mklink", "/J", destination, location).Run()
238238
case "linux":
239-
return exec.Command("ln", "-F", "-s", location, destination).Run()
239+
return exec.Command("ln", "-Fsf", location, destination).Run()
240240
case "darwin":
241-
return exec.Command("ln", "-F", "-s", location, destination).Run()
241+
return exec.Command("ln", "-Fsf", location, destination).Run()
242242
}
243243

244244
return nil

0 commit comments

Comments
 (0)