fixed bashrc echo out on single line
This commit is contained in:
parent
e11c3ed0fc
commit
2eb7da5f53
1 changed files with 3 additions and 4 deletions
|
|
@ -393,9 +393,8 @@ userinstall(){
|
|||
# Check for existing bashrc config, append if missing
|
||||
if [[ $(cat ${HOME}/.bashrc | grep -c 'bashrc.d') == 0 ]] ; then
|
||||
take-backup $HOME/.bashrc
|
||||
run echo -e "$bashrc_append" >> $HOME/.bashrc && boxborder "bashc.d installed..." || warn "Malformed append on ${lbl}${HOME}/.bashrc${dfl}. Check this file for errors"
|
||||
run echo -e "$prbl_bashrc" >> $HOME/.bashrc.d/00-prbl.bashrc && boxborder "bashc.d/00-prbl installed..." || warn "Malformed append on ${lbl}${HOME}/.bashrc.d/00-prbl.bashrc${dfl}. Check this file for errors"
|
||||
fi
|
||||
echo -e "$bashrc_append" >> $HOME/.bashrc && boxborder "bashc.d installed..."
|
||||
echo -e "$prbl_bashrc" >> $HOME/.bashrc.d/00-prbl.bashrc && boxborder "bashc.d/00-prbl installed..."
|
||||
|
||||
|
||||
# Create the quickinfo cache directory
|
||||
|
|
@ -457,7 +456,7 @@ globalinstall(){
|
|||
# done
|
||||
if [[ $(cat /home/${selecteduser}/.bashrc | grep -c prbl) == 0 ]] ; then
|
||||
take-backup /home/${selecteduser}/.bashrc
|
||||
run echo -e "$bashrc_append" >> /home/${selecteduser}/.bashrc && boxborder "bashc.d installed..." || warn "Malformed append on ${lbl}/home/${selecteduser}/.bashrc${dfl}. Check this file for errors"
|
||||
echo -e "$bashrc_append" >> /home/${selecteduser}/.bashrc && boxborder "bashc.d installed..." || warn "Malformed append on ${lbl}/home/${selecteduser}/.bashrc${dfl}. Check this file for errors"
|
||||
fi
|
||||
run sudo chown -R ${selecteduser}:${selecteduser} ${installdir}
|
||||
if [[ "$bins_missing" == "false" ]] ; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue