now paths with spaces work...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-02-09 14:01:49 +03:00
parent a773d1a668
commit b1c9e02b25

View File

@ -34,6 +34,7 @@ done
TARGET_PATH=${TARGET_PATH:=.} TARGET_PATH=${TARGET_PATH:=.}
cd "$TARGET_PATH" cd "$TARGET_PATH"
IFS=$'\n'
DIRS=($(git listall ${RECURSIVE})) DIRS=($(git listall ${RECURSIVE}))
# inside a repo... # inside a repo...
@ -52,9 +53,9 @@ fi
# do the update... # do the update...
wd=$(pwd) wd=$(pwd)
for dir in ${DIRS[@]} ; do for dir in "${DIRS[@]}" ; do
dir=${dir%.git} dir="${dir%.git}"
echo $dir echo "$dir"
cd "$dir" cd "$dir"
git pull git pull
cd "$wd" cd "$wd"