Skip to content

Commit

Permalink
[tr_ratios] switch from bash to sh; quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfralle committed Oct 25, 2016
1 parent 5dfe343 commit 8777efd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/network/transmission_ratios/tr_ratios
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

user=''
pass=''
Expand All @@ -8,9 +8,8 @@ if [ "$1" = "config" ]; then
echo "graph_vlabel Seed ratio %"
echo "graph_category torrent"
echo "graph_info This plugin shows your transmission ratios per torrent"
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels | iconv -f utf-8 -t ascii//translit
exit 0
fi

transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_data

transmission-remote -n "$user:$pass" -l | gawk -f /usr/share/munin/plugins/tr_ratios_data

0 comments on commit 8777efd

Please sign in to comment.