From 5974679b5dcd4f9c898c14c5a67c010d09118dd5 Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Sat, 2 Jan 2016 18:41:14 +0530 Subject: [PATCH] Fix help message --- bin/installer-script.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/installer-script.sh b/bin/installer-script.sh index b97ca6b..c988205 100755 --- a/bin/installer-script.sh +++ b/bin/installer-script.sh @@ -1,11 +1,6 @@ #!/usr/bin/env bash -if [ -z "$1" ]; then - printHelp; - exit 1; -fi - appRoot=$(readlink -f $(dirname $(readlink -f $0))/.. ); . "$appRoot/lib/installer_common"; @@ -44,6 +39,11 @@ installPackage(){ mainInstaller; } +if [ -z "$1" ]; then + printHelp; + exit 1; +fi + case $1 in update) updateSelf;