diff --git a/doc/scripts/docbook.sh b/doc/scripts/docbook.sh index 9e8ad1a..e94749c 100755 --- a/doc/scripts/docbook.sh +++ b/doc/scripts/docbook.sh @@ -118,7 +118,7 @@ while getopts "ciuP:" name; do uninstall=1 ;; P) - PREFIX="$2" + PREFIX="$OPTARG" ;; ?) _usage diff --git a/doc/scripts/gettext.sh b/doc/scripts/gettext.sh index d7d1962..11a8805 100755 --- a/doc/scripts/gettext.sh +++ b/doc/scripts/gettext.sh @@ -119,7 +119,7 @@ while getopts "ciuP:" name; do uninstall=1 ;; P) - PREFIX="$2" + PREFIX="$OPTARG" ;; ?) _usage diff --git a/doc/scripts/gtkdoc.sh b/doc/scripts/gtkdoc.sh index 86de5d4..34ecae5 100755 --- a/doc/scripts/gtkdoc.sh +++ b/doc/scripts/gtkdoc.sh @@ -83,7 +83,7 @@ while getopts "ciuP:" name; do uninstall=1 ;; P) - PREFIX="$2" + PREFIX="$OPTARG" ;; ?) _usage