fi
paths="$HOME"
-[ -n "$LOCAL_HOME" -a "$LOCAL_HOME" != "$HOME" -a -d "$LOCAL_HOME" ] \
+[ -n "$LOCAL_HOME" ] && [ "$LOCAL_HOME" != "$HOME" ] && [ -d "$LOCAL_HOME" ] \
&& paths="$paths $LOCAL_HOME"
[ -d "/var/spool/mail/$LOGNAME" ] \
&& paths="$paths /var/spool/mail/$LOGNAME"
+#!/bin/sh
#
# ax-common.sh -- Common Functions for Shell Scripts
# Copyright (c)2013-2015 Alexander Barton (alex@barton.de)
# (at your option) any later version.
#
+# shellcheck disable=SC2034
ax_common_sourced=1
# Display a colored message.
*) c="0";
esac
# print colored word(s):
- printf "\033[0;${c}m"
- /bin/echo -n "${1}"
- printf "\033[0m "
+ printf "\033[0;%sm%s\033[0m " "${c}" "${1}"
shift
# print remaining word(s) and trailing newline:
echo "${*}"