2
0
Fork 0
mirror of https://github.com/alexanderepstein/Bash-Snippets synced 2018-11-08 02:59:35 +01:00

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

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