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