mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
covered empty server arguments and made parameter comparsion more easy
This commit is contained in:
1 parent
21f0aeef1c
commit
e42b8e5015
3 files changed
+21
-23
No files matched your search
+5
-1
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user