From d16417d29f905c9fe9c8b350f082bf08fb6d4530 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sat, 19 Nov 2016 12:23:36 -0800 Subject: [PATCH] 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. --- plexupdate.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index a160549..434ea3a 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -210,11 +210,7 @@ fi # Parse commandline ALLARGS=( "$@" ) -optstring="acCdfFhlpPqrSsuU -l config:,dldir:,email:,pass:,server:,port:,saveconfig" -getopt -T >/dev/null -if [ $? -eq 4 ]; then - optstring="-o $optstring" -fi +optstring="-o acCdfFhlpPqrSsuU -l config:,dldir:,email:,pass:,server:,port:,saveconfig" GETOPTRES=$(getopt $optstring -- "$@") if [ $? -eq 1 ]; then exit 1