mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 18:50:09 +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:=.}
|
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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user