covered empty server arguments and made parameter comparsion more easy

This commit is contained in:
Daniel Steglich committed 2015-03-05 14:03:11 +01:00
1 parent 21f0aeef1c
commit e42b8e5015
3 files changed
+21 -23

No files matched your search

+5 -1
View File
@@ -54,7 +54,11 @@ doGetOpt()
while getopts ":s:d:u:p:I:U:c:b:" opt; do
case ${opt} in
s)
server=${OPTARG}
if [ "${OPTARG}" != "${EMPTYSTRING}" ];then
server=${OPTARG}
else
server=""
fi
;;
d)
host=${OPTARG}