Skip to content

Commit 12ff8a2

Browse files
committed
fix: send all output to null, not just errors
1 parent 7f5859a commit 12ff8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

set_port.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ trap 'exit 0' SIGTERM
55
readonly root_dir="/home/felipe/workspace/containers/pia-transmission-prowlarr"
66
readonly transmission_port="${root_dir}/data/pia-port/port.dat"
77

8-
if ! transmission-remote -l 2>/dev/null; then # Checks that Transmission is running
8+
if ! transmission-remote -l >/dev/null 2>&1; then # Checks that Transmission is running
99
>&2 echo "Transmission not running."; exit 1
1010
fi
1111

0 commit comments

Comments
 (0)