--- rarian-sk-update.dist +++ rarian-sk-update @@ -264,9 +264,13 @@ process_directory () # They are inherited from scrollkeeper :( # We use TEMP as set -- seems to nuke the return value of getopt -TEMP=`getopt -u -n$(basename $0) -o "o:r:p:vqnhV" \ - -- "$@"` \ - || print_usage +if getopt --version | grep "getopt" >/dev/null; then + TEMP=`getopt -u -n$(basename $0) -o "o:r:p:vqnhV" \ + -- "$@"` \ + || print_usage +else + TEMP=`getopt o:r:p:vqnhV $*` || print_usage +fi if [ $? != 0 ] ; then print_usage