diff --git a/system/bin/submodule_update.sh b/system/bin/submodule_update.sh index b4fe521..84943fa 100755 --- a/system/bin/submodule_update.sh +++ b/system/bin/submodule_update.sh @@ -16,7 +16,10 @@ START_DIR=$(pwd) -for dir in $(find . -name .git -type d -prune) + + + +while IFS= read -r -d '' dir do cd "$dir" || exit 1 cd .. || exit 1 @@ -49,4 +52,4 @@ do cd "${START_DIR}" || exit 1 -done +done < <(find . -name .git -type d -prune -print0)