diff --git a/pluginAndCore.sh b/pluginAndCore.sh index f5a33e5..d292b1b 100755 --- a/pluginAndCore.sh +++ b/pluginAndCore.sh @@ -18,30 +18,21 @@ perform() { cd .. } -# http://linuxcommand.org/lc3_wss0120.php -if [ "$1" = "" ] -then - usage - exit 1 -fi - # https://stackoverflow.com/a/16349776/4137318 cd "${0%/*}" -while [ "$1" != "" ]; do - case $1 in - -b | --build ) perform build - exit - ;; - -c | --clean ) perform clean - exit - ;; - -r | --rebuild ) perform clean - perform build - exit - ;; - * ) usage - exit 1 - esac - shift -done \ No newline at end of file +# http://linuxcommand.org/lc3_wss0120.php +case $1 in + -b | --build ) perform build + exit + ;; + -c | --clean ) perform clean + exit + ;; + -r | --rebuild ) perform clean + perform build + exit + ;; + * ) usage + exit 1 +esac \ No newline at end of file