File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ copy-bin-script() {
2727 # Fix Node path on Windows.
2828 sed -i.bak ' s/^set ROOT_DIR=\(.*\)$/set ROOT_DIR=%~dp0..\\..\\..\\..\r\nset VSROOT_DIR=\1/g' " $dest "
2929 sed -i.bak ' s/%ROOT_DIR%\\out/%VSROOT_DIR%\\out/g' " $dest "
30+
31+ chmod +x " $dest "
3032}
3133
3234main () {
Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ symlink_bin_script() {
5454 dest=" $3 "
5555 ext=" ${4-} "
5656 case $OS in
57- windows)
58- ext=" .cmd"
59- symlink " $source .cmd" " $dest$ext "
60- ;;
57+ windows) symlink " $source .cmd" " $dest .cmd" ;;
6158 darwin | macos) symlink " $source -darwin.sh" " $dest$ext " ;;
6259 * ) symlink " $source -linux.sh" " $dest$ext " ;;
6360 esac
64- chmod +x " $dest$ext "
6561 cd " $oldpwd "
6662}
6763
You can’t perform that action at this time.
0 commit comments