summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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