fix default parameter handling in __rvm_gemset

This commit is contained in:
Evax Software 2012-01-18 15:13:53 +01:00
parent 65be80f2c6
commit 5fa2646011
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@ ruby="$(echo "$gemset" | cut -d '@' -f 1)"
gemsetname="$(echo "$gemset" | cut -d '@' -f 2)"
state_is="$(cat "$__object/explorer/state")"
user="$(cat "$__object/parameter/user")"
default="$(cat "$__object/parameter/default")"
state_should="$(cat "$__object/parameter/state")"
if [ "$state_is" != "$state_should" ]; then
case "$state_should" in

View file

@ -27,6 +27,7 @@ if [ -f "$__object/parameter/default" ]; then
default="$(cat "$__object/parameter/default")"
else
default="no"
echo $default > "$__object/parameter/default"
fi
__rvm "$user" --state installed