fix default parameter handling in __rvm_gemset
This commit is contained in:
parent
65be80f2c6
commit
5fa2646011
2 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ ruby="$(echo "$gemset" | cut -d '@' -f 1)"
|
||||||
gemsetname="$(echo "$gemset" | cut -d '@' -f 2)"
|
gemsetname="$(echo "$gemset" | cut -d '@' -f 2)"
|
||||||
state_is="$(cat "$__object/explorer/state")"
|
state_is="$(cat "$__object/explorer/state")"
|
||||||
user="$(cat "$__object/parameter/user")"
|
user="$(cat "$__object/parameter/user")"
|
||||||
|
default="$(cat "$__object/parameter/default")"
|
||||||
state_should="$(cat "$__object/parameter/state")"
|
state_should="$(cat "$__object/parameter/state")"
|
||||||
if [ "$state_is" != "$state_should" ]; then
|
if [ "$state_is" != "$state_should" ]; then
|
||||||
case "$state_should" in
|
case "$state_should" in
|
||||||
|
|
|
@ -27,6 +27,7 @@ if [ -f "$__object/parameter/default" ]; then
|
||||||
default="$(cat "$__object/parameter/default")"
|
default="$(cat "$__object/parameter/default")"
|
||||||
else
|
else
|
||||||
default="no"
|
default="no"
|
||||||
|
echo $default > "$__object/parameter/default"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__rvm "$user" --state installed
|
__rvm "$user" --state installed
|
||||||
|
|
Loading…
Reference in a new issue