From ddc21c65c8a979ee4098eea2031e3d14ff31fbf9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 24 Jul 2009 03:29:27 -0700 Subject: [PATCH] * the correct default operation is to add tags, not set them --- scripts/service | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/service b/scripts/service index 3c3e472..44563b6 100755 --- a/scripts/service +++ b/scripts/service @@ -790,7 +790,6 @@ END # option to pass to set_tag (we use a hashref here to make it # more obvious what is happening) my @tag_operations; - my $alter_type = '='; my @badtags; for my $tag (@tags) { if ($tag =~ /^[=+-]$/) { @@ -808,7 +807,7 @@ END elsif ($tag eq '+') { push @tag_operations, {tags => [], - option => [add => 1] + option => [add => 1], }; } next; @@ -819,7 +818,7 @@ END } if (not @tag_operations) { @tag_operations = {tags => [], - option => [] + option => [add => 1], }; } push @{$tag_operations[-1]{tags}},$tag; -- 2.39.2