ufw-docker icon indicating copy to clipboard operation
ufw-docker copied to clipboard

ufw-docker status command produces grep warnings

Open jagaimoworks opened this issue 11 months ago • 1 comments

When calling ufw-docker status I get the following output:

grep: warning: stray \ before /
grep: warning: stray \ before /

This is on Arch with ufw-docker-git from the AUR and grep version 3.11.

jagaimoworks avatar Jan 02 '25 11:01 jagaimoworks

Hi! I used artificial intelligence ( duck.ai ). Here's what he advised me. Find the lines in the ufw-docker file that you downloaded (installed):

ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\( ${NETWORK}\\)\$" ||  \
ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\$" || \
ufw status numbered | grep "# allow ${INSTANCE_NAME}\$"

fix them so that it looks like this:

ufw status numbered | grep "# allow ${INSTANCE_NAME}(${INSTANCE_PORT}/${PROTO})(${NETWORK})$" ||  \
ufw status numbered | grep "# allow ${INSTANCE_NAME}(${INSTANCE_PORT}/${PROTO})$" || \
ufw status numbered | grep "# allow ${INSTANCE_NAME}$"

This error does not appear after this edit.

bardimnik avatar Jan 07 '25 10:01 bardimnik