aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdpass4
-rwxr-xr-xpirowatch4
2 files changed, 2 insertions, 6 deletions
diff --git a/dpass b/dpass
index 99654b2..69c4673 100755
--- a/dpass
+++ b/dpass
@@ -42,9 +42,7 @@ search()
do
pass_path="${pass_path}/$(printf '%s\n' "$pass_path"/* |
sed 's/.*\///g' |
- "$menu" -l 25 -p "󰟵 ${pass_path##*/} ")"
-
- [ "$?" != 0 ] &&
+ "$menu" -l 25 -p "󰟵 ${pass_path##*/} ")" ||
die "noting selected"
done
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"
}