error test

This commit is contained in:
Luke 2017-10-08 13:45:12 -07:00
parent d266b7eb60
commit 961e93ca2b
3 changed files with 3 additions and 2 deletions

BIN
.larbs_user.sh.swp Normal file

Binary file not shown.

View File

@ -107,6 +107,7 @@ done
#pacman --noconfirm --needed -S projectm-pulseaudio #pacman --noconfirm --needed -S projectm-pulseaudio
blue Downloading next portion of the script \(larbs_user.sh\)... blue Downloading next portion of the script \(larbs_user.sh\)...
chmod 777 /
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /home/$NAME/larbs_user.sh && blue Running larbs_user.sh script as $NAME... curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /home/$NAME/larbs_user.sh && blue Running larbs_user.sh script as $NAME...
sudo -u $NAME bash /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh... sudo -u $NAME bash /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh...
rm -f /home/$NAME/larbs_user.sh rm -f /home/$NAME/larbs_user.sh

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} blue() { printf "\033[0;34m $* \033[0m\n" ;}
red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} red() { printf "\033[0;31m $* \033[0m\n" ;}
NAME=$(cat .name) NAME=$(cat .name)
rm -f .name rm -f .name