Adding all option as well for homebrew install

This commit is contained in:
Alex Epstein 2017-07-30 13:31:05 -04:00
parent 184d762310
commit f8737c6085
1 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,13 @@ response=$( echo "$@" | grep -Eo "\-\-prefix")
if [[ $response == "--prefix" ]]; then
prefix=$(echo -n "$@" | sed -e 's/--prefix=\(.*\) .*/\1/')
mkdir -p $prefix/bin $prefix/share/man/man1
singleInstall $2 || exit 1
if [[ $2 == "all" ]];then
for tool in "${tools[@]}"; do
singleInstall $tool || exit 1
done
else
singleInstall $2 || exit 1
fi
copyManpage || exit 1
elif [[ $# == 0 ]]; then
for tool in "${tools[@]}"; do