From 07b3870e3dbdd1f482358b00300179600ea15f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 18 Aug 2020 08:09:15 +0200 Subject: [PATCH] Updated for multisystem - bin/stream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .local/bin/stream | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/stream b/.local/bin/stream index 748cf23..022287c 100755 --- a/.local/bin/stream +++ b/.local/bin/stream @@ -1,2 +1,4 @@ #!/bin/bash -nohup streamlink -p mpv $1 best > /dev/null 2>&1 & +KERNEL=$(uname -sr) +[[ $KERNEL =~ "Microsoft" ]] && nohup streamlink -p "/mnt/c/Program\ Files/VideoLAN/VLC/vlc.exe" $1 best > /dev/null 2>&1 & +[[ $KERNEL =~ "gentoo" ]] && nohup streamlink -p mpv $1 best > /dev/null 2>&1 &