Update beta.sh

use awk instead of nl
This commit is contained in:
iamromulan
2024-01-05 17:58:52 -05:00
committed by GitHub
parent 9fa02b3f40
commit ee6fcc2f5f

View File

@@ -135,7 +135,7 @@ configure_simple_firewall() {
echo "Current firewall configuration:"
ports=$(grep '^PORTS=' "$SIMPLE_FIREWALL_SCRIPT" | cut -d'(' -f2 | tr -d '")' | tr ' ' '\n')
echo "$ports" | nl
echo "$ports" | awk '{print NR") "$0}'
while true; do
echo "Enter a port number to add/remove, or type 'done' to finish:"