allow failing cat on optional parameter

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
remotes/origin/2.0
Nico Schottelius 12 years ago
parent 748fc8a258
commit 8c0228bbaa
  1. 2
      conf/type/__rvm_gemset/gencode-remote
  2. 3
      conf/type/__rvm_ruby/gencode-remote

@ -23,7 +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")"
default="$(cat "$__object/parameter/default" 2>/dev/null || true)"
state_should="$(cat "$__object/parameter/state")"
if [ "$state_is" != "$state_should" ]; then
case "$state_should" in

@ -21,8 +21,9 @@
ruby="$__object_id"
state_is="$(cat "$__object/explorer/state")"
user="$(cat "$__object/parameter/user")"
default="$(cat "$__object/parameter/default")"
default="$(cat "$__object/parameter/default" 2>/dev/null || true)"
state_should="$(cat "$__object/parameter/state")"
if [ "$state_is" != "$state_should" ]; then
case "$state_should" in
present)

Loading…
Cancel
Save