Commit fa3b7b55 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Proper fix for non-interactive mode

parent 0134954f
...@@ -931,8 +931,8 @@ function jobs () ...@@ -931,8 +931,8 @@ function jobs ()
cp -R --attributes-only /etc/skel/.oh-my-zsh /root/.oh-my-zsh cp -R --attributes-only /etc/skel/.oh-my-zsh /root/.oh-my-zsh
cp /etc/skel/.zshrc /root/.zshrc cp /etc/skel/.zshrc /root/.zshrc
# and for selected normal user # and for selected normal user
add_choose_user [[ -z $scripted ]] && add_choose_user
if [[ -n "$CHOSEN_USER" && -z $scripted ]]; then if [[ -n "$CHOSEN_USER" ]]; then
chsh -s $(grep /zsh$ /etc/shells | tail -1) $CHOSEN_USER chsh -s $(grep /zsh$ /etc/shells | tail -1) $CHOSEN_USER
# copy cache directory # copy cache directory
cp -R --attributes-only /etc/skel/.oh-my-zsh /home/$CHOSEN_USER/.oh-my-zsh cp -R --attributes-only /etc/skel/.oh-my-zsh /home/$CHOSEN_USER/.oh-my-zsh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment