From e40bfd517cd0faa5a40bb18a37a6e85afd9bbe6c Mon Sep 17 00:00:00 2001 From: Egor Panfilov Date: Thu, 4 Nov 2021 03:44:00 +0300 Subject: [PATCH] Fix tabs in ufw-docker --- ufw-docker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ufw-docker b/ufw-docker index 53cd693..c106519 100755 --- a/ufw-docker +++ b/ufw-docker @@ -31,7 +31,7 @@ function ufw-docker--list() { if [[ -z "$NETWORK" ]]; then NETWORK="[[:graph:]]*" fi - + ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\?\\( ${NETWORK}\\)\\?\$" } @@ -437,9 +437,9 @@ case "$ufw_action" in if [[ "$INSTANCE_PORT" = */udp ]]; then PROTO=udp fi - shift || true - - NETWORK="${1:-}" + shift || true + + NETWORK="${1:-}" INSTANCE_PORT="${INSTANCE_PORT%/*}"