File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ # Found directives are delimited by : to make this script failsafe,
6+ # if the repository working copy is cloned into a directory which
7+ # contains white spaces in the file name.
58# This find construct is based on https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command/4210072#4210072
69PACKAGE_JSON_LIST=$( find " $PROJECT_DIR " \( \
710 -name .git -o \
@@ -24,6 +27,7 @@ PACKAGE_JSON_LIST=$(find "$PROJECT_DIR" \( \
2427 -exec printf ' %s:' {} + | sed ' $s/:$/\n/' )
2528 # Print each path w/o newline but w/ : appended and then remove the last : with sed.
2629
30+ # We split on colon instead of any white space in the for loop.
2731IFS=' :'
2832for package in $PACKAGE_JSON_LIST ; do
2933 echo " - ${package} "
You can’t perform that action at this time.
0 commit comments