summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-04-03 09:27:44 +0200
committerpks <pks@pks.rocks>2021-04-03 09:27:44 +0200
commit7fb7c1563a969665c93cb1f0c6173bbcb25b88a5 (patch)
treed77738fe8f678ee8d1ebaba5976a6a3e69d5f3c8
parent123a0cd55db12ff5689dc9df045505f00d8c6206 (diff)
browser: omit error
-rwxr-xr-xbrowser2
1 files changed, 1 insertions, 1 deletions
diff --git a/browser b/browser
index 6323c4e..77b6555 100755
--- a/browser
+++ b/browser
@@ -2,7 +2,7 @@
# To use mpv for youtube links
if [[ $1 != "" ]]; then
- if printf $1 | grep -q "youtube.com"; then
+ if printf $1 2>/dev/null | grep -q "youtube.com"; then
mpv "$1"
exit
fi