Added PIZZAART-option happy new year with picture new_year
This commit is contained in:
parent
7dadcfc9f3
commit
99d270f420
1 changed files with 7 additions and 3 deletions
10
src/pizza
10
src/pizza
|
@ -14,6 +14,7 @@ help() {
|
||||||
echo " -l Send a heart"
|
echo " -l Send a heart"
|
||||||
echo " -b Send happy birthday"
|
echo " -b Send happy birthday"
|
||||||
echo " -c Send merry christmas"
|
echo " -c Send merry christmas"
|
||||||
|
echo " -n Send a happy new year"
|
||||||
echo " -m <addr> Receivers address (non-optional)"
|
echo " -m <addr> Receivers address (non-optional)"
|
||||||
echo " -s <addr> Senders address, defaults to user@host"
|
echo " -s <addr> Senders address, defaults to user@host"
|
||||||
echo " -h Print this help-message"
|
echo " -h Print this help-message"
|
||||||
|
@ -25,7 +26,7 @@ if [ ! $1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts "plbchm:s:" opt; do
|
while getopts "plbcnhm:s:" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
p )
|
p )
|
||||||
: ${PIZZAART:="pizza"}
|
: ${PIZZAART:="pizza"}
|
||||||
|
@ -39,7 +40,10 @@ while getopts "plbchm:s:" opt; do
|
||||||
c )
|
c )
|
||||||
: ${PIZZAART:="christmastree"}
|
: ${PIZZAART:="christmastree"}
|
||||||
;;
|
;;
|
||||||
m )
|
n )
|
||||||
|
: ${PIZZAART:="new_year"}
|
||||||
|
;;
|
||||||
|
m )
|
||||||
PIZZARCV="${OPTARG}"
|
PIZZARCV="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
s )
|
s )
|
||||||
|
@ -66,4 +70,4 @@ if [ ! $PIZZARCV ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mail -s "${PIZZAUSER} sent you a ${PIZZAART} on ${PIZZAHOST}!" -S from=${PIZZASEND} ${PIZZARCV} < "${PIZZAINC}/${PIZZAART}"
|
mail -s "${PIZZAUSER} sent you a ${PIZZAART} on ${PIZZAHOST}!" -S from=${PIZZASEND} ${PIZZARCV} < "${PIZZAINC}/${PIZZAART}"
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in a new issue