summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-11-26 16:18:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-11-26 16:18:58 +0100
commit20c1141d0383f4cc4ac164fd154e89ca1e0cda47 (patch)
treee3c5101a0b56bcdaf7d34910b2b52cf0ce0c461d
parent6929f59be1663e55f204c009ebb4c3b79bf57260 (diff)
Clean up code
-rwxr-xr-xbin/mqtt-multipub3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mqtt-multipub b/bin/mqtt-multipub
index c844394..b124476 100755
--- a/bin/mqtt-multipub
+++ b/bin/mqtt-multipub
@@ -14,7 +14,7 @@ use Time::HiRes qw(usleep);
my $mqtt_host;
GetOptions(
- 'h|host=s' => \$mqtt_host,
+ 'h|host=s' => \$mqtt_host,
'V|version' => sub { say "mqtt-multipub version $VERSION"; exit 0 },
);
@@ -34,6 +34,7 @@ sub parse_content_string {
}
return $content;
}
+
# Allow //foo as escape for literal /foo messages
$raw_content =~ s{ ^ / / }{/}x;
return $raw_content;