all for the shellcheck

This commit is contained in:
dewomser 2023-03-29 15:57:24 +02:00 committed by GitHub
parent fc4f496dce
commit 464a72b7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,18 @@ convert "$lolo1" -gravity south -background YellowGreen -splice 0x18 -annotat
#a[7]="$( ${a[6]} | sed -e 's/youtube/invidious/g')" #a[7]="$( ${a[6]} | sed -e 's/youtube/invidious/g')"
#olo1="$(echo ${a[6]} |sed -e 's/www.youtube.com/invidio.us/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 # Daten an den Twitterclient
a[5]="https://www.youtube.com/results?search_query=${a[2]} ${a[4]}" a[5]="https://www.youtube.com/results?search_query=${a[2]} ${a[4]}"