From fad67053200a32eba65673e7c5c8c06c83c7ee0a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 11 May 2023 21:45:04 +0300 Subject: [PATCH] added a fallback to vanilla pull if run inside a repo... Signed-off-by: Alex A. Naanou --- git-pullall | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/git-pullall b/git-pullall index 643fd3c..2df41c3 100755 --- a/git-pullall +++ b/git-pullall @@ -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