Skip to content

Commit

Permalink
Strip newlines from config, fix update message
Browse files Browse the repository at this point in the history
  • Loading branch information
14mRh4X0r committed Feb 9, 2018
1 parent e36da6d commit 85f8ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/argon-notifier
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
mapfile config < /etc/argon/config
mapfile -t config < /etc/argon/config

sleep "${config[0]}"
while true; do
Expand All @@ -20,7 +20,7 @@ while true; do
sleep "${config[1]}"
else
updates_msg=${config[2]//NUM/$updates}
updates_msg=${config[2]//UPD/$updateword}
updates_msg=${updates_msg//UPD/$updateword}
notify-send --hint=int:transient:1 -a Argon -i "${config[4]}" "$updates_msg"
echo "${config[2]}" > /etc/argon/message
sleep "${config[1]}"
Expand Down

0 comments on commit 85f8ef4

Please sign in to comment.