Remove obsolete getopt version check

Support for older versions of getopt was broken with #106 back in
October and nobody has complained yet, so I think it's safe to remove
this.
This commit is contained in:
Alex Malinovich 2016-11-19 12:23:36 -08:00
commit d16417d29f

View file

@ -210,11 +210,7 @@ fi
# Parse commandline # Parse commandline
ALLARGS=( "$@" ) ALLARGS=( "$@" )
optstring="acCdfFhlpPqrSsuU -l config:,dldir:,email:,pass:,server:,port:,saveconfig" optstring="-o acCdfFhlpPqrSsuU -l config:,dldir:,email:,pass:,server:,port:,saveconfig"
getopt -T >/dev/null
if [ $? -eq 4 ]; then
optstring="-o $optstring"
fi
GETOPTRES=$(getopt $optstring -- "$@") GETOPTRES=$(getopt $optstring -- "$@")
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
exit 1 exit 1