From 34a188a5f15008c0d416ff7a69f01ed79298e259 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Wed, 15 Apr 2020 17:00:27 -0400
Subject: improved grep
---
build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build.sh b/build.sh
index a4c157b..d94443e 100755
--- a/build.sh
+++ b/build.sh
@@ -8,10 +8,10 @@ cat services | xargs systemctl enable
ip link
export USER=czar
-grep "$USER" /etc/passwd || useradd -m $USER
+grep "^$USER" /etc/passwd || useradd -m $USER
usermod $USER -aG wheel -s /bin/zsh
timedatectl set-ntp true
-echo | sudo -u czar ssh-keygen
+if [ ! -e /home/$USER/.ssh/id_rsa ]; then sudo -u $USER ssh-keygen; fi
sh regional.sh # Region specific setup
hwclock --systohc
--
cgit