From 789c126fb8fa5467165cd2a407a3e8a2ea9245e4 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 19 Nov 2023 18:26:42 +0530 Subject: [PATCH] show progress bar on TTY but not in the log --- create-image.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/create-image.sh b/create-image.sh index 02884f0..e3d3eb6 100755 --- a/create-image.sh +++ b/create-image.sh @@ -61,15 +61,15 @@ EOF sleep 10 } -appliance-creator \ - --config "${KICKSTART_FILE}" \ - --name "${APPLIANCE_NAME}" \ +script -q -c "appliance-creator \ + --config ${KICKSTART_FILE} \ + --name ${APPLIANCE_NAME} \ --format raw \ - --outdir "${PWD}" \ + --outdir ${PWD} \ --no-compress \ --debug \ --cache /root/cache \ - --verbose 2>&1 | tee "${APPLIANCE_NAME}.log" || exit 1 + --verbose" | tee "${APPLIANCE_NAME}.log" || exit 1 if [[ -d "${APPLIANCE_NAME}" ]]; then pushd "${APPLIANCE_NAME}" || exit 1