1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05:00

Indent git log in zimfw update

This commit is contained in:
Eric Nielsen 2019-10-31 22:48:45 -05:00
parent e7ba68511a
commit 109279fc59
No known key found for this signature in database
GPG key ID: 47D1DBFA0765A1FB
2 changed files with 11 additions and 5 deletions

View file

@ -49,8 +49,11 @@ if [[ ${TYPE} == branch ]]; then
else else
OUT="Updating to ${TYPE} ${REV}" OUT="Updating to ${TYPE} ${REV}"
fi fi
[[ -n ${LOG} ]] && OUT="${OUT} if [[ -n ${LOG} ]]; then
${LOG}" LOG_LINES=(' '${(f)^LOG})
OUT="${OUT}
${(F)LOG_LINES}"
fi
if ERR=$(command git submodule update --init --recursive -q 2>&1); then if ERR=$(command git submodule update --init --recursive -q 2>&1); then
if [[ ${OPT} != -q ]]; then if [[ ${OPT} != -q ]]; then
print -R "$(print -P "${CLEAR_LINE}%F{green}✓%f") ${MODULE}: ${OUT}" print -R "$(print -P "${CLEAR_LINE}%F{green}✓%f") ${MODULE}: ${OUT}"

View file

@ -182,7 +182,7 @@ _zimfw_clean_dumpfile() {
} }
_zimfw_info() { _zimfw_info() {
print 'Zim version: 1.0.0-SNAPSHOT (previous commit is 3af566d)' print 'Zim version: 1.0.0-SNAPSHOT (previous commit is 601941f)'
print "Zsh version: ${ZSH_VERSION}" print "Zsh version: ${ZSH_VERSION}"
print "System info: $(command uname -a)" print "System info: $(command uname -a)"
} }
@ -306,8 +306,11 @@ if [[ \${TYPE} == branch ]]; then
else else
OUT=\"Updating to \${TYPE} \${REV}\" OUT=\"Updating to \${TYPE} \${REV}\"
fi fi
[[ -n \${LOG} ]] && OUT=\"\${OUT} if [[ -n \${LOG} ]]; then
\${LOG}\" LOG_LINES=(' '\${(f)^LOG})
OUT=\"\${OUT}
\${(F)LOG_LINES}\"
fi
if ERR=\$(command git submodule update --init --recursive -q 2>&1); then if ERR=\$(command git submodule update --init --recursive -q 2>&1); then
if [[ \${OPT} != -q ]]; then if [[ \${OPT} != -q ]]; then
print -R \"\$(print -P \"\${CLEAR_LINE}%F{green}✓%f\") \${MODULE}: \${OUT}\" print -R \"\$(print -P \"\${CLEAR_LINE}%F{green}✓%f\") \${MODULE}: \${OUT}\"