Add support for --silent option in install.sh script

This allows to skip the execution of the zsh shell at the end of the
process. This is to allow scripting of the oh-my-zsh installation.
This commit is contained in:
Liquidsoul 2018-01-12 21:48:04 +01:00
parent c3b072eace
commit fd57a41909
No known key found for this signature in database
GPG Key ID: 15983D72D696931D

View File

@ -110,7 +110,11 @@ main() {
echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.' echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
echo '' echo ''
printf "${NORMAL}" printf "${NORMAL}"
env zsh if [ "$1" == "--silent" ]; then
printf "Skipping launch of zsh shell. You can launch it yourself or restart your terminal."
else
env zsh
fi
} }
main main "$@"