diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-12 07:47:19 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-12 07:47:19 +0200 |
commit | 98fdf4740451067911ed1b8103fec5cc16755f94 (patch) | |
tree | 3bd7771eb08cd4697868d5cbd7eb0bd071cc02e7 | |
parent | 825c0f9383012f77754931a319485f332d9017fd (diff) |
Minor Fixes
-rw-r--r-- | README | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -33,6 +33,7 @@ otconfig() { # Update the development version otupdate() { + START_DIR=`PWD` otconfig cd $HOME/opentox-ruby/www/opentox for d in `find -not -name "." -type d -maxdepth 1 2>/dev/null`; do echo $d ; cd $d ; git pull ; echo ; cd - ; done @@ -41,7 +42,7 @@ otupdate() { mv liblast/Makefile liblast/Makefile~ if ! git pull; then echo "Error! Pull for Fminer failed." - exit 1 + return 1 fi mv libbbrc/Makefile~ libbbrc/Makefile mv liblast/Makefile~ liblast/Makefile @@ -53,7 +54,7 @@ otupdate() { cd $HOME/opentox-ruby/www/opentox/algorithm/last-utils if ! git pull; then echo "Error! Pull for Last-Utils failed." - exit 1 + return 1 fi cd - cd opentox-ruby @@ -69,6 +70,7 @@ otupdate() { ln -sf $HOME/opentox-ruby/www/opentox/opentox-ruby/lib `echo ${LINK_DIR::${#LINK_DIR}-4}` fi echo "Please execute 'otstart' to restart." + cd "START_DIR" } |