error out if state given is unknown

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-05 16:53:56 +02:00
parent 8bf756f242
commit 519212e396
3 changed files with 12 additions and 0 deletions

View File

@ -52,4 +52,8 @@ case "$state" in
echo $aptget remove \"$name\"
fi
;;
*)
echo "Unknown state: $state" >&2
exit 1
;;
esac

View File

@ -49,4 +49,8 @@ case "$state" in
echo pacman "$pacopts" -R \"$name\"
fi
;;
*)
echo "Unknown state: $state" >&2
exit 1
;;
esac

View File

@ -44,4 +44,8 @@ case "$state" in
echo yum $opts remove \"$name\"
fi
;;
*)
echo "Unknown state: $state" >&2
exit 1
;;
esac