summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
1 files changed, 4 insertions, 1 deletions
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~"