From 9ec6d8befff29cf46dba6d683ce5cb018e20da79 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Mon, 15 Jan 2024 20:04:37 +0100 Subject: [PATCH] memory warning --- install.ztnet/bash/ztnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ztnet/bash/ztnet.sh b/install.ztnet/bash/ztnet.sh index 757e8b04..999eb45c 100755 --- a/install.ztnet/bash/ztnet.sh +++ b/install.ztnet/bash/ztnet.sh @@ -471,7 +471,7 @@ memory_warning() { # Check if total memory is less than or equal to 1024MB (1GB) if [ "$total_mem_mb" -le 1024 ]; then - printf "\n${YELLOW}Warning: Your system's total memory is only ${total_mem_mb}MB. If the installation process fails, it might be due to insufficient memory. Consider upgrading your memory if possible.${NC}" + echo "${YELLOW}Warning: Your system's total memory is only ${total_mem_mb}MB. If the installation process fails, it might be due to insufficient memory. Consider upgrading your memory if possible.${NC}" read -n 1 -s -r -p "\nPress any key to continue..." < /dev/tty fi }