Release new version 0.7.3
[grml-tips.git] / grml-tips-tags
index 1bb3920..a7a4d49 100755 (executable)
@@ -24,8 +24,12 @@ while (my $line = <$fh>) {
     push @tags, split(/[, ]+/, $1);
 }
 
+close ($fh);
 #make tags unique
 my %seen = ();
 @tags = grep { ! $seen{$_} ++ } @tags;
 
-print join("\n", @tags) . "\n";
+open (my $fh, '>', '/usr/share/grml-tips/tags') 
+       or die "Could not open '/usr/share/grml-tips/tags' for writing: $!";
+print $fh join("\n", @tags) . "\n";
+close($fh)