This commit is contained in:
14
build.sh
14
build.sh
@@ -4,8 +4,12 @@ main() {
|
||||
set -eo pipefail
|
||||
|
||||
if ! which pip3; then
|
||||
if which apk; then
|
||||
apk update && apk add py3-pip
|
||||
else
|
||||
apt install -y pip3
|
||||
fi
|
||||
fi
|
||||
|
||||
cd_work_d
|
||||
|
||||
@@ -15,7 +19,15 @@ main() {
|
||||
head_ts="$(cd "$ytdlp2STRM_d"; git log -n 1 --format=%as)"
|
||||
echo head_ts=$head_ts
|
||||
|
||||
yt_dlp_latest="$(pip3 index versions yt-dlp | grep LATEST | awk '{print $NF}')"
|
||||
yt_dlp_latest="$(
|
||||
pip3 index versions yt-dlp \
|
||||
| grep '^Available.versions:' \
|
||||
| tr ' ' '\n' \
|
||||
| grep -v 'Available.versions:' \
|
||||
| sort -n \
|
||||
| tail -n 1 \
|
||||
| tr -d ','
|
||||
)"
|
||||
echo yt_dlp_latest=$yt_dlp_latest
|
||||
|
||||
img=registry-app.inhome.blapointe.com:5001/bel/ytdlp2strm
|
||||
|
||||
Reference in New Issue
Block a user