improve output
This commit is contained in:
parent
12eb3c8a19
commit
1cbb14ab81
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ EOF
|
|||
local nok=""
|
||||
local gco=""
|
||||
if which git >/dev/null; then
|
||||
echo -n "Sync config with ${MYSHELLCONFIG_GIT_SERVER}: " 1>&2
|
||||
loginfo -n "Sync config with ${MYSHELLCONFIG_GIT_SERVER}: "
|
||||
# MYSHELLCONFIG_GITCHECKOUTSCRIPT_OPTIONS are options for bin/git-myshellconfig-checkout
|
||||
if [ -z ${MYSHELLCONFIG_GIT_CHECKOUTSCRIPT_OPTIONS+x} ]; then
|
||||
gco="-h"
|
||||
|
@ -107,7 +107,7 @@ EOF
|
|||
gco="$MYSHELLCONFIG_GIT_CHECKOUTSCRIPT_OPTIONS"
|
||||
fi
|
||||
${MYSHELLCONFIG_BASE}/bin/git-myshellconfig-checkout ${gco}|| nok="not " 1>>"${MYSHELLCONFIG_LOGFILE}" 2>&1
|
||||
printf '%s\n' "${nok}synced" 1>&2
|
||||
loginfo "$(printf '%s\n' "${nok}synced" )"
|
||||
[ -z "$nok" ] && mkdir -pv "${MYSHELLCONFIG_LOGDIR}"
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue