Reformat All: Support spaces in tool paths
Before this update `reformat-all` would not work correctly, if the path
to the reformat scripts contained space characters.
@@ -10,8 +10,12 @@ SCRIPTS_DIR=$(dirname "$0")
cd "$SOURCE"
+OLD_IFS="$IFS"
+IFS='
+'
for reformat in $(ls "$SCRIPTS_DIR"/reformat-*); do
[ "$(basename "$reformat")" = "reformat-all" ] && continue
echo "running $reformat..."
- $reformat "$@"
+ "$reformat" "$@"
done
+IFS="$OLD_IFS"
