diff --git a/install/helpers/logging.sh b/install/helpers/logging.sh index 3030e986..0b609f10 100644 --- a/install/helpers/logging.sh +++ b/install/helpers/logging.sh @@ -112,7 +112,7 @@ stop_install_log() { echo "Omarchy: ${OMARCHY_MINS}m ${OMARCHY_SECS}s" >>"$OMARCHY_INSTALL_LOG_FILE" - if [[ -n $ARCH_DURATION ]]; then + if [[ -n ${ARCH_DURATION:-} ]]; then TOTAL_DURATION=$((ARCH_DURATION + OMARCHY_DURATION)) TOTAL_MINS=$((TOTAL_DURATION / 60)) TOTAL_SECS=$((TOTAL_DURATION % 60))