From 26864f64d4b264ec94654636f39575db103a07dd Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 25 May 2025 12:59:13 -0600 Subject: [PATCH] pip3 install alpine --- build.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index c574094..2169069 100644 --- a/build.sh +++ b/build.sh @@ -4,7 +4,11 @@ main() { set -eo pipefail if ! which pip3; then - apt install -y pip3 + 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