From efa82766a06d962c72dc824520bd541390040390 Mon Sep 17 00:00:00 2001 From: Adam Ruka Date: Tue, 9 Mar 2021 15:14:54 -0800 Subject: [PATCH] chore: change the parameter used for 'find' in link-all.sh 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). --- link-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link-all.sh b/link-all.sh index 6df7b1838ad56..03a94f7e12a05 100755 --- a/link-all.sh +++ b/link-all.sh @@ -26,7 +26,7 @@ for module in ${modules}; do # according to spec (we look in the bin/ directory instead of the { "scripts" # } entry in package.json but it's quite a bit easier. if [[ -d $module/bin ]]; then - for script in $(find $module/bin -perm /111); do + for script in $(find $module/bin -perm +111); do echo "${script} => node_modules/.bin/$(basename $script)" ln -fs ${script} node_modules/.bin done