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 521aaeb commit 1c07feb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install.ztnet/bash/ztnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1c07feb

Please sign in to comment.