aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpirowatch3
1 files changed, 3 insertions, 0 deletions
diff --git a/pirowatch b/pirowatch
index df4bb3f..f75949a 100755
--- a/pirowatch
+++ b/pirowatch
@@ -44,6 +44,9 @@ stream() {
else
webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1"
fi
+
+ [ "$?" != 0 ] &&
+ die "webtorrent failed to play"
}
set_index() {