ufw-docker
ufw-docker copied to clipboard
ufw-docker status command produces grep warnings
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.
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.