Browse Source

Fix ERR syntax for prerequisites

Hamilton Turner 11 years ago
parent
commit
fee7ee6adf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      toolset/setup/linux/prerequisites.sh

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

@@ -1,9 +1,9 @@
 #!/bin/bash
 
-fw_exists fwbm_prereqs_installed
-[ $? -ne 0 ] || { \
+RETCODE=$(fw_exists fwbm_prereqs_installed)
+[ ! "$RETCODE" == 0 ] || { \
   echo "Prerequisites installed!"; 
-  return 0;
+  return 0; 
 }
 
 sudo apt-get -y update