add command line option for nightly installs
This commit is contained in:
parent
059128ead6
commit
62752b844f
1 changed files with 5 additions and 2 deletions
7
install
7
install
|
@ -11,6 +11,9 @@ for arg in "$@"; do
|
|||
--alias|-a)
|
||||
add_alias=1
|
||||
;;
|
||||
--nightly|-n)
|
||||
nightly=1
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
@ -19,7 +22,7 @@ done
|
|||
# prompt for nightly build option if interactive
|
||||
if [ -t 0 ]; then
|
||||
printf "do you want to install a Nightly build? [y/N]: "
|
||||
read answer_nightly
|
||||
read -r answer_nightly
|
||||
if [ "$answer_nightly" = "y" ] || [ "$answer_nightly" = "Y" ]; then
|
||||
nightly=1
|
||||
fi
|
||||
|
@ -97,7 +100,7 @@ if [ "$add_alias" -eq 1 ]; then
|
|||
create_alias
|
||||
elif [ -t 0 ]; then
|
||||
printf "do you want to create an alias 'f' for 'flow'? [y/N]: "
|
||||
read answer_alias
|
||||
read -r answer_alias
|
||||
if [ "$answer_alias" = "y" ] || [ "$answer_alias" = "Y" ]; then
|
||||
create_alias
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue