move the log inside the appliance dir

This commit is contained in:
Pratham Patel 2023-10-04 14:45:18 +05:30
parent d1ad2f68eb
commit ae3ff359cc
No known key found for this signature in database

View File

@ -23,7 +23,8 @@ appliance-creator \
--no-compress \ --no-compress \
--debug \ --debug \
--cache /root/cache \ --cache /root/cache \
--verbose 2>&1 | tee "log-${APPLIANCE_NAME}"|| exit 1 --verbose 2>&1 | tee "${APPLIANCE_NAME}.log" || exit 1
mv "${APPLIANCE_NAME}.log" "${APPLIANCE_NAME}/${APPLIANCE_NAME}.log"
if [[ -d "${APPLIANCE_NAME}" ]]; then if [[ -d "${APPLIANCE_NAME}" ]]; then
pushd "${APPLIANCE_NAME}" || exit 1 pushd "${APPLIANCE_NAME}" || exit 1