fix to USER persistence

This commit is contained in:
Luke
2017-10-06 11:06:37 -07:00
parent cc77af8475
commit fe93a732ce
3 changed files with 10 additions and 6 deletions

View File

@@ -98,9 +98,10 @@ then
sudo -u $USER bash /home/$USER/user.sh || red Error when running user.sh...
rm -f /home/$USER/user.sh
else
USER=$(cat .name)
USER=$(cat .name) || red Could not retreive username...
blue Downloading next portion of the script \(aur_packages.sh\)...
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/aur_packages.sh > /home/$USER/aur_packages.sh && blue Running aur_packages as $USER...
sudo -u $USER bash /home/$USER/aur_packages.sh || red Error when running aur_packages...
rm -f /home/$USER/aur_packages.sh
fi
rm .firstrun