check before chowning

This commit is contained in:
Pratham Patel 2023-07-27 20:41:45 +05:30
parent aa57b71ccc
commit f355fead8a
No known key found for this signature in database

View File

@ -22,4 +22,6 @@ appliance-creator \
1> Rocky-9-aarch64-minimal.stdout.log \ 1> Rocky-9-aarch64-minimal.stdout.log \
2> Rocky-9-aarch64-minimal.stderr.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