From ae3ff359cc4c0e6ed00492eaa239ed30245e204d Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 4 Oct 2023 14:45:18 +0530 Subject: [PATCH] move the log inside the appliance dir --- create-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create-image.sh b/create-image.sh index 6750122..0a6d115 100755 --- a/create-image.sh +++ b/create-image.sh @@ -23,7 +23,8 @@ appliance-creator \ --no-compress \ --debug \ --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 pushd "${APPLIANCE_NAME}" || exit 1