summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-07-12 07:47:19 +0200
committerAndreas Maunz <andreas@maunz.de>2011-07-12 07:47:19 +0200
commit98fdf4740451067911ed1b8103fec5cc16755f94 (patch)
tree3bd7771eb08cd4697868d5cbd7eb0bd071cc02e7 /README
parent825c0f9383012f77754931a319485f332d9017fd (diff)
Minor Fixes
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 4 insertions, 2 deletions
diff --git a/README b/README
index 697ecdb..6dd6880 100644
--- a/README
+++ b/README
@@ -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"
}