From c5277b0a10bf5a13863b4ceb13543cd53d58fae9 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 9 Oct 2023 09:06:15 +0530 Subject: [PATCH] chown the output directory --- create-image.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/create-image.sh b/create-image.sh index 0a6d115..19bb743 100755 --- a/create-image.sh +++ b/create-image.sh @@ -43,3 +43,7 @@ else >&2 echo "$0: ${APPLIANCE_NAME}" exit 1 fi + +if [[ -n "$1" ]]; then + chown "$1":"$1" -vR "${APPLIANCE_NAME}" +fi