Update rtinst.sh

This commit is contained in:
arakasi72
2014-09-23 21:32:47 +01:00
parent 2e1cea9b80
commit f73cf2db0a
+6 -6
View File
@@ -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