From b169f6974042a227278edd93f31e794e60804c4a Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 20 Nov 2023 18:05:05 +0530 Subject: [PATCH] forgot to quit if a valid user was not found (cfc7064964d322711a43973840cccae6c0afdb51) --- create-image.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/create-image.sh b/create-image.sh index d3393fd..a475cb7 100755 --- a/create-image.sh +++ b/create-image.sh @@ -25,6 +25,7 @@ if [[ -n "$1" ]]; then GUSER="^$1" if ! grep $GUSER /etc/shadow > /dev/null; then >&2 echo "$0: ERROR: unable to find user '$1'" + exit 1 fi fi