From fe1bd0e5c927e55a9ba2a71eec4bba8d1e9c5aa2 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 12 Jul 2011 07:37:33 +0200 Subject: Fixed update of GEM (https://github.com/opentox/install/issues/15) --- README | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README b/README index 781a37c..697ecdb 100644 --- a/README +++ b/README @@ -57,8 +57,11 @@ otupdate() { fi cd - cd opentox-ruby - rake install LINK_DIR=`gem which opentox-ruby | sed 's/\/opentox-ruby.rb//'` + if [ -h $LINK_DIR ]; then + rm -f $LINK_DIR + fi + rake install if ! [ -h $LINK_DIR ]; then echo "Warning! Your lib $LINK_DIR is no symlink. Linking back for you..." rm -rf "$LINK_DIR~" -- cgit v1.2.3