Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9cb52bc

Browse files
committedAug 2, 2022
Tweak bin chmod
Chmod on the symlink seems to work just fine (at least on Linux) but I think chmod on the source might be safer.
1 parent ed37567 commit 9cb52bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎ci/build/npm-postinstall.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ symlink_bin_script() {
5656
case $OS in
5757
windows)
5858
ext=".cmd"
59-
symlink "$source.cmd" "$dest$ext"
59+
source="$source.cmd"
6060
;;
61-
darwin | macos) symlink "$source-darwin.sh" "$dest$ext" ;;
62-
*) symlink "$source-linux.sh" "$dest$ext" ;;
61+
darwin | macos) source="$source-darwin.sh" ;;
62+
*) source="$source-linux.sh" ;;
6363
esac
64-
chmod +x "$dest$ext"
64+
chmod +x "$source"
65+
symlink "$source" "$dest$ext"
6566
cd "$oldpwd"
6667
}
6768

0 commit comments

Comments
 (0)
Please sign in to comment.