diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-11-02 16:25:21 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-11-02 16:25:21 +0100 |
commit | 6026d464222f6f51dbb0488ea94a6ab6c79f1f87 (patch) | |
tree | 44d4c50d65216f4035721618509bda4f32e55bbd | |
parent | fd14fb7a60e03d941f082411b1260d6c47565532 (diff) |
fix retain/publish keyword support
-rwxr-xr-x | bin/mqtt-multipub | 4 |
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 ) { |