]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: De-clutter validate_percentage()
authorMartin Schwenke <martin@meltin.net>
Fri, 10 Jun 2022 00:17:28 +0000 (10:17 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 22 Jul 2022 06:38:32 +0000 (06:38 +0000)
It always takes 2 arguments.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events/legacy/05.system.script

index 8940c7b0e61b780031f9016dbe253673e8d8abae..6555152558aaf5b8bb5a79fc82823a53d9aefd03 100755 (executable)
@@ -16,7 +16,7 @@ validate_percentage()
        "") return 1 ;; # A failure that doesn't need a warning
        [0-9] | [0-9][0-9] | 100) return 0 ;;
        *)
-               echo "WARNING: ${1} is an invalid percentage${2:+ in \"}${2}${2:+\"} check"
+               echo "WARNING: ${1} is an invalid percentage in \"${2}\" check"
                return 1
                ;;
        esac