Indentation fixed; newline
This commit is contained in:
parent
99d270f420
commit
a87ede033d
1 changed files with 30 additions and 30 deletions
60
src/pizza
60
src/pizza
|
@ -28,35 +28,35 @@ fi
|
||||||
|
|
||||||
while getopts "plbcnhm:s:" opt; do
|
while getopts "plbcnhm:s:" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
p )
|
p )
|
||||||
: ${PIZZAART:="pizza"}
|
: ${PIZZAART:="pizza"}
|
||||||
;;
|
;;
|
||||||
l )
|
l )
|
||||||
: ${PIZZAART:="heart"}
|
: ${PIZZAART:="heart"}
|
||||||
;;
|
;;
|
||||||
b )
|
b )
|
||||||
: ${PIZZAART:="birthdaycake"}
|
: ${PIZZAART:="birthdaycake"}
|
||||||
;;
|
;;
|
||||||
c )
|
c )
|
||||||
: ${PIZZAART:="christmastree"}
|
: ${PIZZAART:="christmastree"}
|
||||||
;;
|
;;
|
||||||
n )
|
n )
|
||||||
: ${PIZZAART:="new_year"}
|
: ${PIZZAART:="new_year"}
|
||||||
;;
|
;;
|
||||||
m )
|
m )
|
||||||
PIZZARCV="${OPTARG}"
|
PIZZARCV="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
s )
|
s )
|
||||||
PIZZASEND="${OPTARG}"
|
PIZZASEND="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
h )
|
h )
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
help
|
help
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -70,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