Browse Source

Fixing minor issues

Hamilton Turner 11 years ago
parent
commit
7237af9ff0
2 changed files with 4 additions and 5 deletions
  1. 2 3
      toolset/setup/linux/frameworks/wt.sh
  2. 2 2
      toolset/setup/linux/prerequisites.sh

+ 2 - 3
toolset/setup/linux/frameworks/wt.sh

@@ -10,6 +10,7 @@ sudo apt-get -y install libboost1.54-all-dev
 
 fw_get http://downloads.sourceforge.net/witty/wt-3.3.3.tar.gz -O wt.tar.gz
 fw_untar wt.tar.gz
+rm wt.tar.gz
 
 mv wt-* wt
 cd wt
@@ -17,6 +18,4 @@ mkdir -p build
 cd build
 cmake .. -DWT_CPP_11_MODE=-std=c++0x -DCMAKE_BUILD_TYPE=Release
 make
-sudo make install
-
-rm wt.tar.gz
+sudo make install

+ 2 - 2
toolset/setup/linux/prerequisites.sh

@@ -27,8 +27,8 @@ sudo apt-get install -y gcc-4.8 g++-4.8
 
 # Stop permanently overwriting people's files just for 
 # trying out our software!
-fw_exists ~/.bash_profile.bak
-[ $? -eq 0 ] || { \
+RETCODE=$(fw_exists ~/.bash_profile.bak)
+[ ! "$RETCODE" == 0 ] || { \
   echo "Backing up your original ~/.bash_profile, ~/.profile, ~/.bashrc"
   mv ~/.bash_profile ~/.bash_profile.bak
   mv ~/.bash_profile ~/.bash_profile.bak