From 464a72b7b7c5c8520b05741dea8b9491460e926c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20H=C3=B6hn?= Date: Wed, 29 Mar 2023 15:57:24 +0200 Subject: [PATCH] all for the shellcheck --- toot_music | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/toot_music b/toot_music index 047c822..e48d534 100755 --- a/toot_music +++ b/toot_music @@ -60,7 +60,18 @@ convert "$lolo1" -gravity south -background YellowGreen -splice 0x18 -annotat #a[7]="$( ${a[6]} | sed -e 's/youtube/invidious/g')" #olo1="$(echo ${a[6]} |sed -e 's/www.youtube.com/invidio.us/g')" -lolo1="$(echo "${a[6]}" | sed -e 's/[[:alpha:]]*.youtube.com/invidio.us/g')" + +## this is buggy ---shellcheck Grrrr# +# wenn sed Ersatz nicht will. dann diese Zeile +# lolo1="$(echo "${a[6]}" | sed -e 's/[[:alpha:]]*.youtube.com/invidio.us/g')" + +# sed Ersatz wegen shelcheck-terror +lolo3=${a[6]} +lolo2="${lolo3#*.}" +lolo1="${lolo2/youtube.com/invidio.us}" +## buggx end + + # Daten an den Twitterclient a[5]="https://www.youtube.com/results?search_query=${a[2]} ${a[4]}"