--- trunk/mage/usr/lib/mage/magequery.sh 2011/01/28 19:28:51 1205 +++ trunk/mage/usr/lib/mage/magequery.sh 2011/01/28 20:33:29 1206 @@ -12,7 +12,7 @@ echo " -b BUILD searches for build number BUILD, needs -n -v" echo " -c CAT shows all packages of given categorie" echo " -i shows an inventory of all installed packages" - echo " -f PATH searches packages name in given path" + echo " -f PATH searches package names in given path" echo echo " Examples:" echo @@ -26,7 +26,8 @@ SEARCH_ONLY_PATH=false SEARCH_ONLY_CAT=false -while getopts "n:v:b:f:c:hi-" opt ; do +while getopts "n:v:b:f:c:hi-" opt +do case "${opt}" in n) S_PNAME="${OPTARG}"