summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-11-02 16:25:21 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-11-02 16:25:21 +0100
commit6026d464222f6f51dbb0488ea94a6ab6c79f1f87 (patch)
tree44d4c50d65216f4035721618509bda4f32e55bbd /bin
parentfd14fb7a60e03d941f082411b1260d6c47565532 (diff)
fix retain/publish keyword support
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mqtt-multipub4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mqtt-multipub b/bin/mqtt-multipub
index 906a1db..0502b20 100755
--- a/bin/mqtt-multipub
+++ b/bin/mqtt-multipub
@@ -36,10 +36,10 @@ sub parse_content_string {
}
for my $arg (@ARGV) {
- if ( $arg eq '--publish' ) {
+ if ( $arg eq 'publish' ) {
$retain = 0;
}
- elsif ( $arg eq '--retain' ) {
+ elsif ( $arg eq 'retain' ) {
$retain = 1;
}
elsif ( $arg =~ m{ ^ (?<topic> [^=]+) = (?<content> .*) $ }x ) {