From 0b800e5de2cd8dca9ae29064a17d93bfbbf30934 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Tue, 23 Sep 2014 21:27:05 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtinst.sh b/rtinst.sh index eb128f3..c632de6 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -29,7 +29,7 @@ random() while getopts ":d" optname do case $optname in - "d" )[ -n $OPTFLAG ] && useerr=1 || OPTFLAG=1 && DLFLAG=0 ;; + "d" )[[ -n $OPTFLAG ]] && useerr=1 || OPTFLAG=1 && DLFLAG=0 ;; * ) echo "incorrect option, only -d allowed" && exit 1 ;; esac done