correct state error message to use new variable

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-02-16 23:29:51 +01:00
parent 2f01fd6ce0
commit 48f3252de5
5 changed files with 8 additions and 4 deletions

View File

@ -61,7 +61,7 @@ if [ "$state_is" != "$state_should" ]; then
echo $aptget remove \"$name\"
;;
*)
echo "Unknown state: $state" >&2
echo "Unknown state: $state_should" >&2
exit 1
;;
esac

View File

@ -60,7 +60,7 @@ case "$state_should" in
echo luarocks remove \"$name\"
;;
*)
echo "Unknown state: $state" >&2
echo "Unknown state: $state_should" >&2
exit 1
;;
esac

View File

@ -63,7 +63,7 @@ case "$state_should" in
echo pacman "$pacopts" -R \"$name\"
;;
*)
echo "Unknown state: $state" >&2
echo "Unknown state: $state_should" >&2
exit 1
;;
esac

View File

@ -47,4 +47,8 @@ case "$state_should" in
absent)
echo $pip uninstall -q -y pyro
;;
*)
echo "Unknown state: $state_should" >&2
exit 1
;;
esac

View File

@ -56,7 +56,7 @@ case "$state_should" in
echo gem uninstall \"$name\"
;;
*)
echo "Unknown state: $state" >&2
echo "Unknown state: $state_should" >&2
exit 1
;;
esac