add "nosync"
This commit is contained in:
parent
88b271e3ce
commit
85b6f63cbd
1 changed files with 8 additions and 3 deletions
|
@ -38,11 +38,16 @@ EOF
|
||||||
# define functions
|
# define functions
|
||||||
ckrepo () {
|
ckrepo () {
|
||||||
# check if remote repo is reachable
|
# check if remote repo is reachable
|
||||||
|
if $MYSHELLCONFIG_NOSYNC; then
|
||||||
|
echo "no sync allowed from config" >&2
|
||||||
|
return 0
|
||||||
|
else
|
||||||
if $( timeout --foreground "${MYSHELLCONFIG_GIT_TIMEOUT}" $SGIT ls-remote >/dev/null 2>&1) ;then
|
if $( timeout --foreground "${MYSHELLCONFIG_GIT_TIMEOUT}" $SGIT ls-remote >/dev/null 2>&1) ;then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue