mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
MR #1194
Added the fix mentioned on #1194 with the correction requsted on the review
This commit is contained in:
parent
8d12aa654c
commit
586c631b9e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue