From 99d270f4201c26bc1839de12dfb5292cc8431e6f Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 2 Jan 2015 17:04:46 +0100 Subject: [PATCH] Added PIZZAART-option happy new year with picture new_year --- src/pizza | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pizza b/src/pizza index a26f3f5..3f1c730 100755 --- a/src/pizza +++ b/src/pizza @@ -14,6 +14,7 @@ help() { echo " -l Send a heart" echo " -b Send happy birthday" echo " -c Send merry christmas" + echo " -n Send a happy new year" echo " -m Receivers address (non-optional)" echo " -s Senders address, defaults to user@host" echo " -h Print this help-message" @@ -25,7 +26,7 @@ if [ ! $1 ]; then exit 1 fi -while getopts "plbchm:s:" opt; do +while getopts "plbcnhm:s:" opt; do case ${opt} in p ) : ${PIZZAART:="pizza"} @@ -39,7 +40,10 @@ while getopts "plbchm:s:" opt; do c ) : ${PIZZAART:="christmastree"} ;; - m ) + n ) + : ${PIZZAART:="new_year"} + ;; + m ) PIZZARCV="${OPTARG}" ;; s ) @@ -66,4 +70,4 @@ if [ ! $PIZZARCV ]; then fi mail -s "${PIZZAUSER} sent you a ${PIZZAART} on ${PIZZAHOST}!" -S from=${PIZZASEND} ${PIZZARCV} < "${PIZZAINC}/${PIZZAART}" -exit 0 +exit 0 \ No newline at end of file