From 53bc05d2ef1fff72ff7b899d779703eb55966400 Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Mon, 21 Nov 2016 13:26:41 +0800 Subject: [PATCH] Fixed travis build. --- .travis.yml | 2 +- launcher | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cad0237..9ccbe46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,5 +14,5 @@ script: - sudo ./launcher bootstrap - sudo ./launcher start && sleep 10 - sudo ./launcher stop --skip-prereqs - - sudo ./launcher start --docker-args="-h seafile-server" && sleep 10 + - sudo ./launcher start --docker-args "-h seafile-server" && sleep 10 - sudo ./launcher restart diff --git a/launcher b/launcher index cda9280..fe78876 100755 --- a/launcher +++ b/launcher @@ -201,7 +201,7 @@ restart() { } check_prereqs() { - if [[ $skip_prereqs == "true" ]]; then + if [[ $SKIP_PREREQS == "true" ]]; then return 0 fi @@ -232,7 +232,7 @@ main() { bootstrap|oldstart|start|stop|restart|enter|destroy|logs|rebuild) action=$1 ; shift 1 ;; --debug) debug=true ; shift 1 ;; - --skip-prereqs) skip_prereqs=true ; shift 1 ;; + --skip-prereqs) SKIP_PREREQS=true ; shift 1 ;; --docker-args) user_args=$2 ; shift 2 ;; *) err_and_quit "Argument error. Please see help." ;; esac