Skip to content

Commit

Permalink
saner
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Jan 26, 2025
1 parent 7c56da7 commit d54996b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/runner/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ if [[ "${SBUILD_SUCCESSFUL}" == "YES" ]]; then
cp -fv "${SBUILD_OUTDIR}/${SBUILD_PKG}.version.sig" "${SBUILD_OUTDIR}/${PROG}.version.sig"
fi
#Generate Webpage
PKG_WEBPAGE="https://pkgs.pkgforge.dev/repo/$(echo "${GHCRPKG_URL}" | sed 's|ghcr.io/||' | sed 's|^/*||; s|/*$||' | tr -d '[:space:]')" ; export PKG_WEBPAGE
PKG_WEBPAGE="https://pkgs.pkgforge.dev/repo/${PKG_REPO}/${HOST_TRIPLET,,}/$(echo "${GHCRPKG_URL}" | sed "s|ghcr.io/pkgforge/${PKG_REPO}||" | sed 's|^/*||; s|/*$||' | tr -d '[:space:]')" ; export PKG_WEBPAGE
#Generate
if ! echo "${SNAPSHOT_JSON}" | jq empty 2>/dev/null; then
SNAPSHOT_JSON="[]"
Expand Down Expand Up @@ -826,7 +826,7 @@ if [[ "${SBUILD_SUCCESSFUL}" == "YES" ]] && [[ -s "${GHCR_PKG}" ]]; then
PKG_WEBPAGE="$(jq -r '.pkg_webpage' "${PKG_JSON}" | tr -d '[:space:]')"
[[ "${PKG_WEBPAGE}" == "null" ]] && unset PKG_WEBPAGE
if [ -z "${PKG_WEBPAGE+x}" ] || [ -z "${PKG_WEBPAGE##*[[:space:]]}" ]; then
PKG_WEBPAGE="https://pkgs.pkgforge.dev/repo/$(echo "${GHCRPKG_URL}" | sed 's|ghcr.io/||' | sed 's|^/*||; s|/*$||' | tr -d '[:space:]')" ; export PKG_WEBPAGE
PKG_WEBPAGE="https://pkgs.pkgforge.dev/repo/${PKG_REPO}/${HOST_TRIPLET,,}/$(echo "${GHCRPKG_URL}" | sed "s|ghcr.io/pkgforge/${PKG_REPO}||" | sed 's|^/*||; s|/*$||' | tr -d '[:space:]')" ; export PKG_WEBPAGE
fi
#note
PKG_NOTE="$(jq -r 'if .note | type == "array" then .note[0] else .note end' "${PKG_JSON}")"
Expand Down

0 comments on commit d54996b

Please sign in to comment.