We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 826fc07 commit a660dabCopy full SHA for a660dab
versions.sh
@@ -17,7 +17,8 @@ else
17
fi
18
versions=( "${versions[@]%/}" )
19
20
-getPipCommit="$(curl -fsSL 'https://github.com/pypa/get-pip/commits/main/public/get-pip.py.atom' | tac|tac | awk -F '[[:space:]]*[<>/]+' '$2 == "id" && $3 ~ /Commit/ { print $4; exit }')"
+getPipCommit="$(curl -fsSL 'https://github.com/pypa/get-pip/commits/main/public/get-pip.py.atom' | grep -E 'id.*Commit')"
21
+getPipCommit="$(awk <<<"$getPipCommit" -F '[[:space:]]*[<>/]+' '$2 == "id" && $3 ~ /Commit/ { print $4; exit }')"
22
getPipUrl="https://github.com/pypa/get-pip/raw/$getPipCommit/public/get-pip.py"
23
getPipSha256="$(curl -fsSL "$getPipUrl" | sha256sum | cut -d' ' -f1)"
24
export getPipUrl getPipSha256
0 commit comments