From 8099a499837e419312c9f6a4c863d319a5eef269 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 18 Mar 2025 01:30:29 -0700 Subject: [PATCH] :pencil2: More universal call to rtorrent --- scripts/rt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rt b/scripts/rt index d527505d..0950c648 100755 --- a/scripts/rt +++ b/scripts/rt @@ -3,11 +3,11 @@ main() { if pgrep -x "openvpn" >/dev/null; then IPV4=$(ip addr show dev tun0 | grep inet | awk '{print $2}' | cut -d/ -f1 | head -n 1) - /usr/bin/rtorrent -b "$IPV4" + $(which rtorrent) -b "$IPV4" else echo "openvpn is not running. please start your VPN first." exit 1 fi } -main +main \ No newline at end of file