diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-12 07:37:33 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-12 07:37:33 +0200 |
commit | fe1bd0e5c927e55a9ba2a71eec4bba8d1e9c5aa2 (patch) | |
tree | 4b06a93bc61508130c8c73934fe978ad52421417 | |
parent | dabea8ef8e26260a648b0d5fde6c43e378e3ae79 (diff) |
Fixed update of GEM (https://github.com/opentox/install/issues/15)
-rw-r--r-- | README | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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~" |