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 $aptget remove \"$name\"
;; ;;
*) *)
echo "Unknown state: $state" >&2 echo "Unknown state: $state_should" >&2
exit 1 exit 1
;; ;;
esac esac

View file

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

View file

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

View file

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

View file

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