Taking away spaces in capture field in installer for homebrew prefix

This commit is contained in:
Alex Epstein 2017-08-01 10:37:49 -04:00
parent ee8a50aff2
commit 67be56791d
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ copyManpage()
response=$( echo "$@" | grep -Eo "\-\-prefix")
if [[ $response == "--prefix" ]]; then
prefix=$(echo -n "$@" | sed -e 's/--prefix=\(.*\) .*/\1/' | grep -Eo "^[a-z/A-Z= -- .0-9]*")
prefix=$(echo -n "$@" | sed -e 's/--prefix=\(.*\) .*/\1/' | grep -Eo "^[a-z/A-Z=--.0-9]*")
echo $prefix
mkdir -p $prefix/bin $prefix/share/man/man1
if [[ $2 == "all" ]];then