Added the fix mentioned on #1194 with the correction requsted on the
review
This commit is contained in:
Carlos Colaço 2021-01-17 17:35:01 +01:00
parent 8d12aa654c
commit 586c631b9e

View file

@ -980,7 +980,7 @@ chooseUser(){
isRepo(){ isRepo(){
# If the directory does not have a .git folder it is not a repo # If the directory does not have a .git folder it is not a repo
echo -n "::: Checking $1 is a repo..." echo -n "::: Checking $1 is a repo..."
cd "${1}" &> /dev/null || return 1 cd "${1}" &> /dev/null || { echo " not found!"; return 1; }
$SUDO git status &> /dev/null && echo " OK!"; return 0 || echo " not found!"; return 1 $SUDO git status &> /dev/null && echo " OK!"; return 0 || echo " not found!"; return 1
} }