Skip to content

Commit 508fe6a

Browse files
author
fernandogelin
committed
fix(build): rm symlink before creating a new one to avoid break
1 parent 4f6d618 commit 508fe6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/build.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ function symlink_user_bin(path_::AbstractString)
1313
@warn bin_path
1414
run(`setx path "%path%;$bin_path"`)
1515
else
16-
symlink(path_, "/usr/local/bin/$exec")
16+
bin_exec_path = "/usr/local/bin/$exec"
17+
rm(bin_exec_path, force=true)
18+
symlink(path_, bin_exec_path)
1719
@warn "Created symlink: /usr/local/bin/viva -> $path_"
1820
end
1921
end

0 commit comments

Comments
 (0)