vcarbs

Cem's Auto Rice Bootstrapping Scripts, for Void Linux
git clone git://git.ckyln.com/vcarbs.git
Log | Files | Refs | README | LICENSE

commit aebd2f83dcacb198fdb23dabc147af29f12cf43a
parent 15e5ece3520f2d299095432a31d6fcabdb81971a
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 21 Nov 2019 10:40:42 +0300

if sudouser func is run don't run umaskfix

Diffstat:
Mcarbs | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/carbs b/carbs @@ -138,7 +138,9 @@ installcsv() {\ sudouser() {\ warning "You don't seem to have sudo installed\nCarbs will now install sudo and add you\nto sudoers" su -c "xbps-install -Su && xbps-install -y sudo && \ - printf '$1 ALL=(ALL) NOPASSWD: ALL\n' > /etc/sudoers.d/carbs" + printf '$1 ALL=(ALL) NOPASSWD: ALL\nDefaults umask = 022\n' > /etc/sudoers.d/carbs" + sudouser="1" + export sudouser } dotfilesinstall() { @@ -217,7 +219,7 @@ if [ $interactive = 1 ]; then welcomepage sudo -V >/dev/null 2>&1 || sudouser $USER fi -umaskfix +[ -z "$sudouser" ] && umaskfix "$USER" sudo xbps-install -y -Su || die 'Could not refresh xbps database' sudo xbps-install -y git curl fzf installcsv