git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 67936165 authored by Evan Prodromou's avatar Evan Prodromou

Success exit from settag.php if desired state already exists

If you're adding a tag that already exists, or deleting a tag that
doesn't exist, using settag.php, the exit value is 0 instead of
previous -1. This makes scripting around tags a wee bit easier.
parent 499e7d7c
......@@ -66,12 +66,12 @@ if ($i !== false) {
}
} else {
print "Already set.\n";
exit(-1);
exit(0);
}
} else {
if (have_option('d', 'delete')) { // Delete
print "No such tag.\n";
exit(-1);
exit(0);
} else {
$tags[] = $tag;
$result = $sn->setTags($tags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment