diff --git a/install.sh b/install.sh index 850d5a2..e598aad 100644 --- a/install.sh +++ b/install.sh @@ -195,7 +195,7 @@ globalinstall(){ #cp -r ${rundir}/lib/skel/* /etc/skel/ scp -r ${rundir}/lib/skel/.* /home/${selecteduser} if [[ $(cat /home/${selecteduser}/.bashrc | grep -c prbl) == 0 ]] ; then - echo -e $bashrc_append >> /home/${selecteduser}/.bashrc && boxborder "bashc.d installed..." || fail "Unable to append .bashrc" + su ${selecteduser} -c "echo -e $bashrc_append >> /home/${selecteduser}/.bashrc" && boxborder "bashc.d installed..." || fail "Unable to append .bashrc" fi crontab -l -u $selecteduser | cat - ${rundir}/lib/quickinfo.cron | crontab -u $selecteduser - mkdir -p /home/${selecteduser}/.quickinfo