From 185a06d5dc20ba210eb97373ec2eb1ef426b4966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 4 Mar 2020 11:10:18 +0100 Subject: [PATCH] do nosync --- bashrc_add | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bashrc_add b/bashrc_add index ac9505d..4c91422 100755 --- a/bashrc_add +++ b/bashrc_add @@ -39,15 +39,15 @@ EOF # define functions ckrepo () { # check if remote repo is reachable - if $MYSHELLCONFIG_NOSYNC; then - echo "no sync allowed from config" >&2 - return 0 - else + if $MYSHELLCONFIG_GIT_SYNC; then if $( timeout --foreground "${MYSHELLCONFIG_GIT_TIMEOUT}" $SGIT ls-remote >/dev/null 2>&1) ;then return 0 else return 1 fi + else + echo "no sync allowed from config" >&2 + return 0 fi }