Changed files:
banner.sh -> 1.7
}
show_banner()
{
- cat $BANNERDIR/$1 >&$STDOUT
+ cat "$BANNERDIR/$1" >&$STDOUT
}
show_banners()
{
done
}
######################################################## MAIN ########
-while [ ! -z $1 ]; do
- case $1 in
+while [ -n "$1" ]; do
+ case "$1" in
-a|--all)
ALL_BANNERS=1
;;
;;
-m|--make|-M)
NEED_BANNER_LIST=0
- if [[ $2 != */* ]]; then
+ if [[ "$2" != */* ]]; then
NEW_BANNER="$BANNERDIR/${2##*/}"
else
NEW_BANNER="$2"
fi
ACTION="make"
- if [ "$1" == "-M" ];then
+ if [ "$1" = "-M" ];then
NEW_APPEND=1
else
NEW_APPEND=0