diff --git a/create-image.sh b/create-image.sh index c49291d..7500096 100755 --- a/create-image.sh +++ b/create-image.sh @@ -22,4 +22,6 @@ appliance-creator \ 1> Rocky-9-aarch64-minimal.stdout.log \ 2> Rocky-9-aarch64-minimal.stderr.log -chown "${REAL_USER}:${REAL_USER}" "${APPLIANCE_NAME}*" +if [[ -f "${APPLIANCE_NAME}*" ]]; then + chown "${REAL_USER}:${REAL_USER}" "${APPLIANCE_NAME}*" +fi