I'm writing scripts to automate the installation and configuration of my raspberry pi. My problem is that the official installation script of oh-my-zsh opens a new shell - the zsh. So that practically ends my script and i need a separate script for further configuration. I want my script to continue after the omz install.sh has finished.
script:
. ./functions.sh
echo "\n###### install zsh ######\n"
log "apt-get install -qqy zsh"
read -p "Enter Your Name: " username
log "chsh -s /bin/zsh $username"
# this install.sh opens zsh and blocks proceeding of script
su - $username -c 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# I want the script to continue here
echo "More commands"
Notes:
- log is declared in functions.sh and will execute command and output command which was executed