Skip to content

Commit e635dac

Browse files
authored
chore: change the parameter used for 'find' in link-all.sh (#13510)
The parameter currently used for `find` in `link-all.sh`, `-perm /111`, fails on my Mac. Switch to using `-perm +111`, which works fine, and that's also what JSII uses in [its `link-all.sh` script](https://github.com/aws/jsii/blob/f8bde4a01bf7c707c87ab00748eeeb7632e7c820/scripts/link-all.sh#L26-L26). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent bc1293b commit e635dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

link-all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for module in ${modules}; do
2626
# according to spec (we look in the bin/ directory instead of the { "scripts"
2727
# } entry in package.json but it's quite a bit easier.
2828
if [[ -d $module/bin ]]; then
29-
for script in $(find $module/bin -perm /111); do
29+
for script in $(find $module/bin -perm +111); do
3030
echo "${script} => node_modules/.bin/$(basename $script)"
3131
ln -fs ${script} node_modules/.bin
3232
done

0 commit comments

Comments
 (0)