limits: Fix action

This commit is contained in:
tschettervictor
2025-03-29 18:21:27 -06:00
committed by GitHub
parent b3ae555168
commit 683135b575

View File

@@ -83,6 +83,7 @@ if [ "$#" -lt 2 ] || [ "$#" -gt 4 ]; then
fi
TARGET="${1}"
ACTION="${2}"
# Retain support for no action (will default to add)
if [ "${ACTION}" != "remove" ] && [ "${ACTION}" != "clear" ] && [ "${ACTION}" != "list" ] && [ "${ACTION}" != "show" ] && [ "${ACTION}" != "reset" ] && [ "${ACTION}" != "stats" ]; then
ACTION="add"