From 1c07feb25d4eba8f8a4b9242f20fa9b74087994f Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Mon, 15 Jan 2024 20:00:17 +0100 Subject: [PATCH] memory warning --- install.ztnet/bash/ztnet.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.ztnet/bash/ztnet.sh b/install.ztnet/bash/ztnet.sh index ad175524..757e8b04 100755 --- a/install.ztnet/bash/ztnet.sh +++ b/install.ztnet/bash/ztnet.sh @@ -472,8 +472,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}" - sleep 0.5 - read -n 1 -s -r -p "Press any key to continue..." < /dev/tty + read -n 1 -s -r -p "\nPress any key to continue..." < /dev/tty fi }