Skip to content

Commit

Permalink
misc: small fix or general refactoring i did not bother commenting
Browse files Browse the repository at this point in the history
evilsocket committed Aug 31, 2022
1 parent 43f3d33 commit a397903
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
/*.json
/*.js
/*.py
/*.py
/test-*
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -250,6 +250,8 @@ fn main() {
.unwrap()
});

println!("");

loop {
if let Some(poll_payload) = &varialble_payload {
client.send_message(&Message::text(poll_payload)).unwrap();
@@ -259,7 +261,7 @@ fn main() {
let result: protocol::responses::ResultMessage =
serde_json::from_str(&data).unwrap();
if let Some(ref poll_command) = args.poll_command {
println!("passing variable value to {} ...", poll_command);
// println!("passing variable value to {} ...", poll_command);
Command::new(poll_command)
.arg(&result.result.result.value.unwrap_or("".to_owned()))
.spawn()

0 comments on commit a397903

Please sign in to comment.