mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix v symlink
This commit is contained in:
@ -1035,7 +1035,8 @@ pub fn vfmt(args[]string) {
|
||||
}
|
||||
|
||||
pub fn create_symlink() {
|
||||
vexe := vexe_path()
|
||||
$if windows { return }
|
||||
vexe := os.executable()
|
||||
link_path := '/usr/local/bin/v'
|
||||
ret := os.system('ln -sf $vexe $link_path')
|
||||
if ret == 0 {
|
||||
|
Reference in New Issue
Block a user