From ceb1d9331f018df6d3b0400cb86f5aa3f2607104 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 10 Oct 2013 18:49:11 -0400 Subject: [PATCH] move getopts back to main scope Signed-off-by: Jason Etheridge --- installer/wheezy/eg_wheezy_installer.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/installer/wheezy/eg_wheezy_installer.sh b/installer/wheezy/eg_wheezy_installer.sh index 47971db04..89f468aa9 100755 --- a/installer/wheezy/eg_wheezy_installer.sh +++ b/installer/wheezy/eg_wheezy_installer.sh @@ -14,6 +14,17 @@ # GNU General Public License for more details. # ----------------------------------------------------------------------- +while getopts ayst option +do + case "${option}" + in + a) AUTOSTART=1;; + y) YES=1;; + s) SAMPLEDATA=--load-all-sample;; + t) LIVETEST=1;; + esac +done + function my_init { date init_variables @@ -43,16 +54,6 @@ function init_variables { # ----------------------------------------------------------------------- # Handling passed arguments to the script # ----------------------------------------------------------------------- - while getopts ayst option - do - case "${option}" - in - a) AUTOSTART=1;; - y) YES=1;; - s) SAMPLEDATA=--load-all-sample;; - t) LIVETEST=1;; - esac - done export DOJO_VERSION='1.3.3'; export PATH=/openils/bin:$PATH export LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH -- 2.43.2