mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 10:40:08 +00:00
now paths with spaces work...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a773d1a668
commit
b1c9e02b25
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user