diff --git a/.larbs.sh.swp b/.larbs.sh.swp new file mode 100644 index 0000000..878defd Binary files /dev/null and b/.larbs.sh.swp differ diff --git a/larbs.sh b/larbs.sh index 34e5638..a1e7641 100755 --- a/larbs.sh +++ b/larbs.sh @@ -18,6 +18,7 @@ do done NAME=$(cat .name) +chmod 777 .name useradd -m -g wheel -s /bin/bash $NAME echo "$NAME:$(cat .pass1)" | chpasswd @@ -106,7 +107,6 @@ done #pacman --noconfirm --needed -S projectm-pulseaudio blue Downloading next portion of the script \(user.sh\)... -echo $NAME > /home/$NAME/.name && chmod 777 /home/$NAME/.name curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/user.sh > /home/$NAME/user.sh && blue Running user.sh script as $NAME... sudo -u $NAME bash /home/$NAME/user.sh || red Error when running user.sh... rm -f /home/$NAME/user.sh diff --git a/larbs_user.sh b/larbs_user.sh index 4b1c1b1..8264afd 100755 --- a/larbs_user.sh +++ b/larbs_user.sh @@ -4,6 +4,7 @@ blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} NAME=$(cat .name) +rm -f .name blue Changing directory to /home/$NAME... cd /home/$NAME