mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
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:
parent
78256a08c4
commit
d16417d29f
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue