From 7d2b3130fa279323ea91a35604324fb9bab3fa79 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 17 Oct 2012 10:37:57 +0000 Subject: [PATCH] Fixed parsing arguments (using $OPTARG) --- doc/scripts/pkgconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index e25756c..895f3b7 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -67,7 +67,7 @@ while getopts iuP: name; do uninstall=1 ;; P) - PREFIX="$2" + PREFIX="$OPTARG" ;; ?) _usage