Update after.sh

This commit is contained in:
Baltrust 2026-10-13 19:29:15 +03:00
parent b1adf6935e
commit ba140c36ba

View file

@ -2,7 +2,10 @@
set -e set -e
read -rp "Enter your username: " USERNAME #read -rp "Enter your username: " USERNAME
# Detect the normal user created by archinstall
USERNAME=$(awk -F: '$3 >= 1000 && $3 < 60000 && $6 ~ /^\/home\// {print $1; exit}' /etc/passwd)
if ! id "$USERNAME" &>/dev/null; then if ! id "$USERNAME" &>/dev/null; then
echo "Error: user '$USERNAME' does not exist." echo "Error: user '$USERNAME' does not exist."