File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,15 @@ DEFVER=1
2
2
ARCHS_SUPPORTED="amd64"
3
3
get_github_releases "torakiki/pdfsam-visual-public" latest
4
4
if [ "${ACTION}" != "prettylist" ]; then
5
- URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
5
+ local ARCH_VER
6
+ case ${HOST_ARCH} in
7
+ amd64) ARCH_VER=x64;;
8
+ esac
9
+
10
+ URL="$(grep "browser_download_url.*${ARCH_VER}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
11
+ if [ -z $URL] ;then
12
+ URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
13
+ fi
6
14
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
7
15
fi
8
16
PRETTY_NAME="PDFsam Visual"
You can’t perform that action at this time.
0 commit comments