mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-29 11:10:09 +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)
|
DIRS=(./*/.git)
|
||||||
fi
|
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...
|
# no matches...
|
||||||
if [[ $DIRS =~ \* ]] ; then
|
if [[ $DIRS =~ \* ]] ; then
|
||||||
echo "no repos found." >&2
|
echo "no repos found." >&2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user