readability and whitespaces

This commit is contained in:
Jérémy Lecour 2017-10-18 00:43:33 +02:00
parent 232648a9b0
commit cd8ea40336
2 changed files with 87 additions and 81 deletions

View file

@ -25,10 +25,14 @@ EOT
}
log() {
[ "${QUIET}" != "1" ] && echo "${PROGNAME}: $1"
if [ "${QUIET}" != "1" ]; then
echo "${PROGNAME}: $1"
fi
}
debug() {
[ "${VERBOSE}" = "1" ] && [ "${QUIET}" != "1" ] && >&2 echo "${PROGNAME}: $1"
if [ "${VERBOSE}" = "1" ] && [ "${QUIET}" != "1" ]; then
>&2 echo "${PROGNAME}: $1"
fi
}
error() {
>&2 echo "${PROGNAME}: $1"

View file

@ -24,7 +24,9 @@ EOT
}
debug() {
[ "${VERBOSE}" = 1 ] && >&2 echo "${PROGNAME}: $1"
if [ "${VERBOSE}" = 1 ]; then
>&2 echo "${PROGNAME}: $1"
fi
}
error() {
>&2 echo "${PROGNAME}: $1"