larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7141a6b0e67c150021715f99b9973bb577fc5a14
parent fd5b28c7e16778917a1956b16c7a9f225963f9f7
Author: Luke <luke@lukesmith.xyz>
Date:   Sun,  8 Oct 2017 16:53:40 -0700

Now using /tmp as AUR directory

Diffstat:
D.larbs.sh.swp | 0
Mlarbs.sh | 10++++++----
Mlarbs_user.sh | 14+-------------
3 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/.larbs.sh.swp b/.larbs.sh.swp Binary files differ. diff --git a/larbs.sh b/larbs.sh @@ -19,6 +19,7 @@ done chmod 777 .name NAME=$(cat /.name) +rm /.name useradd -m -g wheel -s /bin/bash $NAME echo "$NAME:$(cat .pass1)" | chpasswd @@ -106,11 +107,12 @@ done #Packages I may later add: #pacman --noconfirm --needed -S projectm-pulseaudio +cd /tmp +blue Changin working directory to /tmp/... 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... -sudo -u $NAME bash /home/$NAME/larbs_user.sh || red Error when running larbs_user.sh... -rm -f /home/$NAME/larbs_user.sh +curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /tmp/larbs_user.sh && blue Running larbs_user.sh script as $NAME... +sudo -u $NAME bash /tmp/larbs_user.sh || red Error when running larbs_user.sh... +rm -f /tmp/larbs_user.sh printf "${BLUE}Enabling Network Manager...\n${NC}" systemctl enable NetworkManager diff --git a/larbs_user.sh b/larbs_user.sh @@ -3,17 +3,7 @@ blue() { printf "\033[0;34m $* \033[0m\n" ;} red() { printf "\033[0;31m $* \033[0m\n" ;} -NAME=$(cat /.name) -rm -f .name -pwd -pwd -pwd -blue Changing directory to /home/$NAME... -pwd -pwd -pwd - -cd /home/$NAME +NAME=$(whoami) blue Activating Pulseaudio if not already active... pulseaudio --start && blue Pulseaudio enabled... @@ -42,8 +32,6 @@ fi done } -blue Changing directory to /home/$NAME... -cd /home/$NAME || red Could not cd to /home/$NAME. Does user and home directory exist? blue Installing AUR programs... blue \(This may take some time.\)