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:
Alex A. Naanou 2023-05-11 21:45:04 +03:00
parent c4026ca966
commit fad6705320

View File

@ -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