STYLE: allow spaces in pkg name (again)

This commit is contained in:
Mark Olesen
2011-02-11 16:52:36 +01:00
parent a63cf3cba9
commit 0c2eb36ed2

View File

@ -76,8 +76,8 @@ do
;;
-pkg | -package)
[ "$#" -ge 2 ] || usage "'$1' option requires an argument"
# mark empty as 'none', disallow '!' and spaces in string
package=$(echo "${2:-none}" | sed -e 's/!//g' -e 's/ //g')
# mark empty as 'none', disallow '!' in string
package=$(echo "${2:-none}" | sed -e 's/!//g')
shift 2
;;
-v | -version)