From f73cf2db0ad56547e2b4a335fd0b86c042ff4198 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Tue, 23 Sep 2014 21:32:47 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rtinst.sh b/rtinst.sh index 68fde5e..2966791 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -29,18 +29,18 @@ random() while getopts ":d" optname do case $optname in - "d" )[[ -n $OPTFLAG ]] && useerr=1 || OPTFLAG=1 && DLFLAG=0 ;; + "d" ) DLFLAG=0 ;; * ) echo "incorrect option, only -d allowed" && exit 1 ;; esac done shift $(( $OPTIND - 1 )) -if [ $useerr -eq 1 ] - then - echo "option entered multiple times, please only use -d once" - exit 1 -fi +#if [ $useerr -eq 1 ] +# then +# echo "option entered multiple times, please only use -d once" +# exit 1 +#fi # Check if there is more than 0 argument