fixed syntax issue with bashrc_append
This commit is contained in:
parent
e972f3eb46
commit
802feb0a09
1 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ userinstall(){
|
||||||
|
|
||||||
# Check for existing bashrc config, append if missing
|
# Check for existing bashrc config, append if missing
|
||||||
if [[ $(cat ${HOME}/.bashrc | grep -c prbl) = 0 ]] ; then
|
if [[ $(cat ${HOME}/.bashrc | grep -c prbl) = 0 ]] ; then
|
||||||
echo -e $bashrc_append >> $HOME/.bashrc && boxborder "bashc.d installed..." || warn "Malformed append on ${lbl}${HOME}/.bashrc${dfl}. Check this file for errors"
|
echo -e "$bashrc_append" >> $HOME/.bashrc && boxborder "bashc.d installed..." || warn "Malformed append on ${lbl}${HOME}/.bashrc${dfl}. Check this file for errors"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check crontab for quickinfo cron task
|
# Check crontab for quickinfo cron task
|
||||||
|
|
@ -206,7 +206,7 @@ globalinstall(){
|
||||||
#cp -r ${rundir}/lib/skel/* /etc/skel/
|
#cp -r ${rundir}/lib/skel/* /etc/skel/
|
||||||
scp -r ${rundir}/lib/skel/.* /home/${selecteduser}
|
scp -r ${rundir}/lib/skel/.* /home/${selecteduser}
|
||||||
if [[ $(cat /home/${selecteduser}/.bashrc | grep -c prbl) == 0 ]] ; then
|
if [[ $(cat /home/${selecteduser}/.bashrc | grep -c prbl) == 0 ]] ; then
|
||||||
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
|
fi
|
||||||
crontab -l -u $selecteduser | cat - ${rundir}/lib/quickinfo.cron | crontab -u $selecteduser -
|
crontab -l -u $selecteduser | cat - ${rundir}/lib/quickinfo.cron | crontab -u $selecteduser -
|
||||||
mkdir -p /home/${selecteduser}/.quickinfo
|
mkdir -p /home/${selecteduser}/.quickinfo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue