mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 10:40:08 +00:00
added a fallback to vanilla pull if run inside a repo...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c4026ca966
commit
fad6705320
@ -47,6 +47,15 @@ else
|
||||
DIRS=(./*/.git)
|
||||
fi
|
||||
|
||||
|
||||
# inside a repo...
|
||||
if [ -d ./.git ] ; then
|
||||
echo "running inside a repository, falling back to vanilla pull..."
|
||||
git pull
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# no matches...
|
||||
if [[ $DIRS =~ \* ]] ; then
|
||||
echo "no repos found." >&2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user