Fix SC2044 warning in bootstrap.sh
This commit is contained in:
parent
4c6afc1b69
commit
9fd2ac79c0
|
@ -108,9 +108,14 @@ runUserScripts() {
|
||||||
if [[ -n $userScriptsFlag && $userScriptsFlag = true ]]; then
|
if [[ -n $userScriptsFlag && $userScriptsFlag = true ]]; then
|
||||||
lastFolder=$(pwd -P)
|
lastFolder=$(pwd -P)
|
||||||
cd .. || { echo "Couldn't cd into parent folder." 1>&2 && exit 1; }
|
cd .. || { echo "Couldn't cd into parent folder." 1>&2 && exit 1; }
|
||||||
for script in $(find -H scripts -type f); do
|
|
||||||
|
local IFS=
|
||||||
|
while read -r -d '' script; do
|
||||||
source "$script"
|
source "$script"
|
||||||
done
|
done < <(find -H scripts -type f -print0)
|
||||||
|
|
||||||
|
# find -H scripts -type f -exec sh -c 'echo "2 source $1"' -sh {} \;
|
||||||
|
|
||||||
cd "$lastFolder" || { echo "Couldn't cd into '$lastFolder'." 1>&2 && exit 1; }
|
cd "$lastFolder" || { echo "Couldn't cd into '$lastFolder'." 1>&2 && exit 1; }
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue