Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/functions/functions.zone | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/functions/functions.zone b/src/functions/functions.zone index 776b63b..d121225 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -550,7 +550,12 @@ zone_config() { zone_config_new "${zone}" "$@" ;; destroy) - zone_config_destroy "${zone}" "$@" + local id=${1} + if zone_config_id_is_valid ${zone} ${id}; then + zone_config_destroy "${zone}" "$@" + else + log ERROR "${id} is not a valid id" + fi ;; edit) zone_config_edit "${zone}" "$@"