improve output

This commit is contained in:
Jakobus Schürz 2022-09-17 12:26:12 +02:00
parent 604e7a7f72
commit 7c7965b080
2 changed files with 2 additions and 1 deletions

View file

@ -95,6 +95,7 @@ EOF
-lt $(date --date="${MSC_GIT_REPO_UPDATE_INTERVALL-${MSC_GIT_REPO_UPDATE_INTERVALL_DEFAULT}} hours ago" "+%s") ]; then
logwarning "sync-intervall (${MSC_GIT_REPO_UPDATE_INTERVALL-${MSC_GIT_REPO_UPDATE_INTERVALL_DEFAULT}} hours) reached"
logwarning "check if reachable"
git ls-remote
if $( timeout --foreground "${MSC_GIT_TIMEOUT-$MSC_GIT_TIMEOUT_DEFAULT}" $SGIT ls-remote >/dev/null 2>&1) ;then
logwarning "reachable"
return 0

View file

@ -109,7 +109,7 @@ if ! $SSHS; then
. ${MSC_BASE}/functions.sh
create_symlinks "$MSC_BASE"
else
loginfo "${MSC_GIT_SERVER}" not reachable >&2;
loginfo "${MSC_GIT_SERVER}" not reachable or sync-time not reached>&2;
loginfo "profile not syncing" >&2;
fi