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() {
27
27
# Fix Node path on Windows.
28
28
sed -i.bak ' s/^set ROOT_DIR=\(.*\)$/set ROOT_DIR=%~dp0..\\..\\..\\..\r\nset VSROOT_DIR=\1/g' " $dest "
29
29
sed -i.bak ' s/%ROOT_DIR%\\out/%VSROOT_DIR%\\out/g' " $dest "
30
+
31
+ chmod +x " $dest "
30
32
}
31
33
32
34
main () {
Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ symlink_bin_script() {
54
54
dest=" $3 "
55
55
ext=" ${4-} "
56
56
case $OS in
57
- windows)
58
- ext=" .cmd"
59
- symlink " $source .cmd" " $dest$ext "
60
- ;;
57
+ windows) symlink " $source .cmd" " $dest .cmd" ;;
61
58
darwin | macos) symlink " $source -darwin.sh" " $dest$ext " ;;
62
59
* ) symlink " $source -linux.sh" " $dest$ext " ;;
63
60
esac
64
- chmod +x " $dest$ext "
65
61
cd " $oldpwd "
66
62
}
67
63
You can’t perform that action at this time.
0 commit comments