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:
parent
184d762310
commit
f8737c6085
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue