Skip to content

Commit

Permalink
refactor: replace unnecessary head-1 behaviour
Browse files Browse the repository at this point in the history
replace pipes to head with grep -m1
  • Loading branch information
philclifford committed Nov 1, 2024
1 parent 1852f69 commit 26f3729
Show file tree
Hide file tree
Showing 152 changed files with 269 additions and 269 deletions.
4 changes: 2 additions & 2 deletions 01-main/packages/activitywatch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "ActivityWatch/activitywatch" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")
fi
PRETTY_NAME="ActivityWatch"
WEBSITE="https://activitywatch.net/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/alduin
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "AlduinApp/alduin" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")
fi
PRETTY_NAME="alduin"
WEBSITE="https://github.com/AlduinApp/alduin"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/android-messages-desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "OrangeDrangon/android-messages-desktop" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="android-messages-desktop"
WEBSITE="https://github.com/OrangeDrangon/android-messages-desktop/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/antimicrox
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "AntiMicroX/antimicrox"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_CPU}\.deb\"" "${CACHE_FILE}" | grep -v -e '\-rc\/anti' | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*${HOST_CPU}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e '\-rc\/anti' | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8)"
fi
PRETTY_NAME="AntiMicroX"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/appimagelauncher
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=2
ARCHS_SUPPORTED="amd64 armhf arm64"
get_github_releases "TheAssassin/AppImageLauncher"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v xenial | head -n1 | cut -d '"' -f4)"
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v xenial | cut -d '"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d '_' -f2 | cut -d '-' -f1)"
fi
PRETTY_NAME="AppImage Launcher"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/atomic
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_website "https://get.atomicwallet.io/download/"
if [ "${ACTION}" != "prettylist" ]; then
VERSION_PUBLISHED="$(grep deb "${CACHE_FILE}" | grep atomicwallet|grep -v sha|tail -n2|head -n1|sed "s/^.*\-\(\S*\).deb.*/\1/")"
VERSION_PUBLISHED=$(grep deb "${CACHE_FILE}" | grep atomicwallet|grep -v sha|tail -n2|head -n1|sed "s/^.*\-\(\S*\).deb.*/\1/")
URL="https://get.atomicwallet.io/download/atomicwallet-${VERSION_PUBLISHED}.deb"
fi
PRETTY_NAME="Atomic Wallet"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/authme
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "Levminer/authme" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'-' -f2)"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'-' -f2)
fi
PRETTY_NAME="Authme"
WEBSITE="https://github.com/Levminer/authme"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/balena-etcher
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "balena-io/etcher"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
URL=$(grep -m 1 "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="Etcher"
WEBSITE="https://www.balena.io/etcher/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64 armhf"
get_github_releases "sharkdp/bat" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v musl | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v musl | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
fi
PRETTY_NAME="bat"
Expand Down
10 changes: 5 additions & 5 deletions 01-main/packages/beersmith3
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ get_website "https://beersmith.com/download-beersmith/"
if [ "${ACTION}" != "prettylist" ]; then
case ${UPSTREAM_CODENAME} in
bionic)
URL="$(grep "18\.04_amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f2)"
URL=$(grep -m 1 "18\.04_amd64\.deb\"" "${CACHE_FILE}" | cut -d'"' -f2)
;;
focal)
URL="$( grep "3\.2\.7_amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f2)"
URL=$( grep -m 1 "3\.2\.7_amd64\.deb\"" "${CACHE_FILE}" | cut -d'"' -f2)
;;
jammy|mantic)
URL="$(grep "amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f2)"
URL=$(grep -m 1 "amd64\.deb\"" "${CACHE_FILE}" | cut -d'"' -f2)
;;
*)
URL="$(grep "amd64\.deb\"" "${CACHE_FILE}"| head -n1 | cut -d'"' -f2)"
URL=$(grep -m 1 "amd64\.deb\"" "${CACHE_FILE}"| cut -d'"' -f2)
;;
esac

VERSION_PUBLISHED="$(echo "${URL}" | cut -d'-' -f3 | cut -d'_' -f1)"
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'-' -f3 | cut -d'_' -f1)
fi
PRETTY_NAME="BeerSmith"
WEBSITE="https://beersmith.com/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/bitwarden
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "bitwarden/clients"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d desktop-v-)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d desktop-v-)
fi
PRETTY_NAME="Bitwarden"
WEBSITE="https://bitwarden.com/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/blockbench
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "JannisX11/blockbench" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="Blockbench"
WEBSITE="https://www.blockbench.net/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/bluejeans-v2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_website "$(unroll_url https://www.bluejeans.com/downloads)"
get_website $(unroll_url https://www.bluejeans.com/downloads)
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "BlueJeans_.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d"\"" -f 2)"
URL=$(grep -m 1 "BlueJeans_.*\.deb\"" "${CACHE_FILE}" | cut -d"\"" -f 2)
local VERSION_TMP="${URL##*/BlueJeans_}"
VERSION_PUBLISHED="${VERSION_TMP%%.deb}"
fi
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/bottom
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 armhf arm64"
get_github_releases "ClementTsang/bottom" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*bottom_.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8)
fi
PRETTY_NAME="bottom"
WEBSITE="https://github.com/ClementTsang/bottom"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/brisqi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "Brisqi/releases" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="Brisqi"
WEBSITE="https://brisqi.com/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/browsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ elif [[ "${URL_ARCH}" =~ i386 ]]; then
fi
get_github_releases "browsh-org/browsh"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${URL_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
URL=$(grep -m 1 "browser_download_url.*${URL_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(grep -Eo '/v[^/]*' <<<"${URL}" | cut -d 'v' -f 2)
fi
PRETTY_NAME="browsh"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/caddy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "caddyserver/caddy" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")
fi
PRETTY_NAME="caddy"
WEBSITE="https://github.com/caddyserver/caddy"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/caprine
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "sindresorhus/caprine"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="Caprine"
WEBSITE="https://sindresorhus.com/caprine"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/codium
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64 armhf"
get_github_releases "VSCodium/vscodium"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="VSCodium"
WEBSITE="https://vscodium.com/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/com.github.tkashkin.gamehub
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "tkashkin/GameHub"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v '\-dev' | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v '\-dev' | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed 's|-master||')"
fi
PRETTY_NAME="GameHub"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/cosign
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64 armhf"
get_github_releases "sigstore/cosign" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="Cosign"
WEBSITE="https://github.com/sigstore/cosign"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/croc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if [ "${ACTION}" != "prettylist" ]; then
esac

URL=$(grep -E "browser_download_url.*${APP}.*Linux-${PKGARCH}\.deb\"" "${CACHE_DIR}/${APP}.json" | head -1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo ${URL} | cut -d'/' -f8 | tr -d v)"
#VERSION_PUBLISHED="$(echo ${URL} | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'|sort -u)"
VERSION_PUBLISHED=$(echo ${URL} | cut -d'/' -f8 | tr -d v)
#VERSION_PUBLISHED=$(echo ${URL} | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'|sort -u)
fi
PRETTY_NAME="Croc"
WEBSITE="https://schollz.com/blog/croc6/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/cronopete
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=1
CODENAMES_SUPPORTED="sid bullseye jammy focal"
get_website "https://www.rastersoft.com/programas/cronopete.html"
if [ "${ACTION}" != "prettylist" ]; then
VERSION_PUBLISHED="$(grep "Current version" "${CACHE_FILE}" | head -n1 | cut -d ' ' -f3)"
VERSION_PUBLISHED=$(grep -m 1 "Current version" "${CACHE_FILE}" | cut -d ' ' -f3)
fi
URL="https://www.rastersoft.com/descargas/cronopete/cronopete-${UPSTREAM_CODENAME}_${VERSION_PUBLISHED}-${UPSTREAM_ID}1_amd64.deb"
PRETTY_NAME="Cronopete"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/crossover
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_website "https://media.codeweavers.com/pub/crossover/cxlinux/demo/?V=1;O=D;F=0;P=crossover_*.deb"
if [ "${ACTION}" != "prettylist" ]; then
local VERSION_NAME="$(grep "\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d"\"" -f 2)"
local VERSION_NAME=$(grep -m 1 "\.deb\"" "${CACHE_FILE}" | cut -d"\"" -f 2)
VERSION_PUBLISHED="${VERSION_NAME:10:-4}"
URL="https://media.codeweavers.com/pub/crossover/cxlinux/demo/${VERSION_NAME}"
fi
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/crow-translate
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "crow-translate/crow-translate" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")
fi
PRETTY_NAME="crow-translate"
WEBSITE="https://github.com/crow-translate/crow-translate"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/deborah
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
CODENAMES_SUPPORTED="focal jammy kinetic lunar mantic"
get_github_releases "ymauray/deborah"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${UPSTREAM_CODENAME}.*_amd64.deb" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep -m 1 "browser_download_url.*${UPSTREAM_CODENAME}.*_amd64.deb" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="Deborah"
WEBSITE="https://github.com/ymauray/deborah/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/deskcut
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "NayamAmarshe/DeskCut" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed 's|^stable-||')"
URL=$(grep -m 1 "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed 's|^stable-||')
fi
PRETTY_NAME="DeskCut"
WEBSITE="https://github.com/NayamAmarshe/DeskCut"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/detectiteasy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "horsicq/DIE-engine" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${RELEASE_ID^}_${UPSTREAM_RELEASE}.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
URL=$(grep -m 1 "browser_download_url.*${RELEASE_ID^}_${UPSTREAM_RELEASE}.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")
fi
PRETTY_NAME="detectiteasy"
WEBSITE="https://github.com/horsicq/DIE-engine"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/dive
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64"
get_github_releases "wagoodman/dive" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="dive"
WEBSITE="https://github.com/wagoodman/dive/"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/docker-desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_website "https://docs.docker.com/desktop/release-notes/"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "amd64\.deb" "${CACHE_FILE}" | grep -Eo 'https://[^ >]+' | cut -d'?' -f1 | tr -d '"' | head -n1)"
VERSION_PUBLISHED=$(grep -E -m 1 -o 'href=#[0-9]+>[^>]*([^<]*)<' "${CACHE_FILE}" | head -n 1 | sed -E 's|.*>([^<]+)<.*|\1|')
URL="$(grep "amd64\.deb" "${CACHE_FILE}" | grep -m 1 -Eo 'https://[^ >]+' | cut -d'?' -f1 | tr -d '"' )"
VERSION_PUBLISHED=$(grep -E -m 1 -o 'href=#[0-9]+>[^>]*([^<]*)<' "${CACHE_FILE}" | sed -E 's|.*>([^<]+)<.*|\1|')
fi
PRETTY_NAME="Docker Desktop"
WEBSITE="https://www.docker.com/products/docker-desktop/"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/dorion
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64"
get_github_releases "SpikeHD/dorion" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep -m1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
fi
PRETTY_NAME="Dorion"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/draw.io
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEFVER=1
get_github_releases "jgraph/drawio-desktop" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
URL=$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v)
fi
PRETTY_NAME="draw.io"
WEBSITE="https://www.diagrams.net"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/du-dust
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "bootandy/dust" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | grep -v musl | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | grep -m 1 -v musl | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
fi
PRETTY_NAME="du-dust"
Expand Down
6 changes: 3 additions & 3 deletions 01-main/packages/duf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ ARCHS_SUPPORTED="amd64 arm64 armhf"
get_github_releases "muesli/duf" "latest"
if [ "${ACTION}" != "prettylist" ]; then
case "${HOST_ARCH}" in
armhf) URL=$(grep "browser_download_url.*armv7\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
armhf) URL=$(grep -m 1 "browser_download_url.*armv7\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
;;
*) URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
*) URL=$(grep -m 1 "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
esac
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'_' -f2)"
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'_' -f2)
fi
PRETTY_NAME="duf"
WEBSITE="https://github.com/muesli/duf"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/dustracing2d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "juzzlin/DustRacing2D" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep "18\.04" | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -e "18\.04" | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8)"
fi
PRETTY_NAME="DustRacing2D"
Expand Down
2 changes: 1 addition & 1 deletion 01-main/packages/emby-server
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=1
ARCHS_SUPPORTED="amd64 arm64 armhf"
get_github_releases "MediaBrowser/Emby.Releases" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v '.md5' | head -n1 | cut -d'"' -f4)"
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v '.md5' | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
fi
PRETTY_NAME="emby-server"
Expand Down
Loading

0 comments on commit 26f3729

Please sign in to comment.