diff --git a/install.sh b/install.sh index dee2497563..e3249faea0 100755 --- a/install.sh +++ b/install.sh @@ -49,7 +49,13 @@ usage() { } #------------------------------------------------------------------------------- -TEMP_OPT=`getopt -o hkrlcsou:g:d: -n 'install.sh' -- "$@"` +PARAMETERS="hkrlcsou:g:d:" + +if [ $(getopt --version | tr -d " ") = "--" ]; then + TEMP_OPT=`getopt $PARAMETERS "$@"` +else + TEMP_OPT=`getopt -o $PARAMETERS -n 'install.sh' -- "$@"` +fi if [ $? != 0 ] ; then usage