Add a flag to prevent the "launch" of zsh

For me personally, it is very annoying when I install a fresh copy
of linux and I run my script to install everything but it gets stuck
at the installation of oh-my-zsh because it waits for zsh to exit.
Because of that I added the flag "--no-env-zsh", and yes I know that
it's a dumb name, to prevent the installer from "starting" zsh if the
user specifies the "--no-env-zsh" flag.
I didn't find a PR like this or a way to prevent the installer from
launching zsh in the script. I also don't know if it's useful for anyone
except me.
This commit is contained in:
Alexander Polynomdivision 2017-02-06 20:49:57 +01:00
parent d2725d44fc
commit ee3363f475

View File

@ -110,7 +110,12 @@ main() {
echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.' echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.'
echo '' echo ''
printf "${NORMAL}" printf "${NORMAL}"
env zsh
# Check if the user wants to switch into zsh right after the installation
# (! $1 = "--no-env-zsh")
if [ ! $1 = "--no-env-zsh" ]; then
env zsh
fi
} }
main main