From b1c9e02b25a5bc8dd3b778c10a95fb68164564c1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 9 Feb 2024 14:01:49 +0300 Subject: [PATCH] now paths with spaces work... Signed-off-by: Alex A. Naanou --- bin/git-pullall | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/git-pullall b/bin/git-pullall index 6434fa4..2f6a684 100755 --- a/bin/git-pullall +++ b/bin/git-pullall @@ -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"