Skip to content

Commit

Permalink
memory warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Jan 15, 2024
1 parent 1c07feb commit 9ec6d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.ztnet/bash/ztnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9ec6d8b

Please sign in to comment.