aboutsummaryrefslogtreecommitdiff
path: root/pirowatch
diff options
context:
space:
mode:
Diffstat (limited to 'pirowatch')
-rwxr-xr-xpirowatch4
1 files changed, 1 insertions, 3 deletions
diff --git a/pirowatch b/pirowatch
index 9ac6eae..02f6198 100755
--- a/pirowatch
+++ b/pirowatch
@@ -55,9 +55,7 @@ stream() {
webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1" --select "$2"
else
webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1"
- fi
-
- [ "$?" != 0 ] &&
+ fi ||
die "webtorrent failed to play"
}