From ecdfe24bd953bec10190a85a6f3adf07c7386549 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 3 Aug 2018 17:03:39 -0400 Subject: [PATCH] minor wteaks --- larbs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/larbs.sh b/larbs.sh index 14ab9e5..cbcb9d5 100755 --- a/larbs.sh +++ b/larbs.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Luke's Auto Rice Boostrapping Script (LARBS) +# by Luke Smith +# License: GNU GPLv3 + # You can provide a custom repository with -r or a custom programs csv with -p. # Otherwise, the script will use my defaults. @@ -10,7 +14,7 @@ ### while getopts ":a:r:p:h" o; do case "${o}" in - h) echo -e "Optional arguments for custom use:\n-r: Dotfiles repository (local file or url)\n-p: Dependencies and programs csv (local file or url)\n-a: AUR helper (must have pacman-like syntax, specifically, \`-S\` to install)\n-h: Show this message" && exit ;; + h) echo -e "Optional arguments for custom use:\n -r: Dotfiles repository (local file or url)\n -p: Dependencies and programs csv (local file or url)\n -a: AUR helper (must have pacman-like syntax)\n -h: Show this message" && exit ;; r) dotfilesrepo=${OPTARG} && git ls-remote $dotfilesrepo || exit ;; p) progsfile=${OPTARG} ;; a) aurhelper=${OPTARG} ;; @@ -65,7 +69,7 @@ usercheck() { \ adduserandpass() { \ # Adds user `$name` with password $pass1. dialog --infobox "Adding user \"$name\"..." 4 50 - useradd -m -g wheel -s /bin/bash $name || + useradd -m -g wheel -s /bin/bash $name &>/dev/null || usermod -a -G wheel $name echo "$name:$pass1" | chpasswd unset pass1 pass2 ;}