Commit 372f83eb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add quotes for eget --list mask

parent ebd40bd0
......@@ -41,7 +41,7 @@ PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch '' '_')"
# lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found
#[ "$(epm print info -s)" = "alt" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)"
PKGURL="$(eget --list --latest https://download.anydesk.com/linux/ ./$PKGMASK)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://download.anydesk.com/linux/ "./$PKGMASK")" || fatal "Can't get package URL"
epm $repack install "$PKGURL" || exit
......
......@@ -18,7 +18,7 @@ case $pkgtype in
;;
esac
PKGURL=$(eget --list --latest https://github.com/balena-io/etcher/releases $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/balena-io/etcher/releases "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -30,7 +30,7 @@ case "$arch-$pkgtype" in
esac
PKGURL=$(eget --list --latest https://github.com/VSCodium/vscodium/releases $(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)) || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://github.com/VSCodium/vscodium/releases "$(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)")" || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
......
......@@ -19,7 +19,7 @@ esac
arch=amd64
PKGURL=$(eget --list --latest https://github.com/darbyjohnston/DJV/releases $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/darbyjohnston/DJV/releases "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -25,7 +25,7 @@ case "$pkgtype" in
;;
esac
PKGURL=$(eget --list --latest https://github.com/Figma-Linux/figma-linux/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/Figma-Linux/figma-linux/releases "$file") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -18,7 +18,7 @@ case $pkgtype in
;;
esac
PKGURL="$(eget --list --latest https://www.freeoffice.com/ru/download/applications $file)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://www.freeoffice.com/ru/download/applications "$file")" || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -36,5 +36,5 @@ case "$arch" in
esac
PKGURL="$(eget --list --latest https://github.com/ipfs/kubo/releases ${BASEPKGNAME}_v$VERSION$file)"
PKGURL="$(eget --list --latest https://github.com/ipfs/kubo/releases "${BASEPKGNAME}_v$VERSION$file")"
epm pack --install $PKGNAME "$PKGURL"
......@@ -36,6 +36,6 @@ if [ -z "$PKG" ] ; then
esac
fi
PKGURL=$(eget --list --latest https://code-industry.ru/get-master-pdf-editor-for-linux/ $PKG) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://code-industry.ru/get-master-pdf-editor-for-linux/ "$PKG") || fatal "Can't get package URL"
epm $repack install "$PKGURL"
......@@ -8,7 +8,7 @@ URL="https://neovide.dev/"
. $(dirname $0)/common.sh
PKGURL=$(eget --list --latest https://github.com/neovide/neovide/releases $PKGNAME.AppImage) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/neovide/neovide/releases "$PKGNAME.AppImage") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -10,7 +10,7 @@ URL="https://www.downloadhelper.net/install-coapp"
mask="$PKGNAME-${VERSION}_amd64.deb"
PKGURL=$(eget --list --latest https://github.com/aclap-dev/vdhcoapp/releases/ $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/aclap-dev/vdhcoapp/releases/ "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -34,7 +34,7 @@ case "$(epm print info -s)" in
esac
if [ "$VERSION" = "*" ] ; then
PKGURL="$(eget --list --latest https://github.com/ONLYOFFICE/DesktopEditors/releases $file)"
PKGURL="$(eget --list --latest https://github.com/ONLYOFFICE/DesktopEditors/releases "$file")"
else
PKGURL="https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v$VERSION/$file"
fi
......
......@@ -11,7 +11,7 @@ URL="https://github.com/pachca/pachca-desktop"
arch="$(epm print info --debian-arch)"
file="${PKGNAME}_${VERSION}_$arch.deb"
PKGURL=$(eget --list --latest https://github.com/pachca/pachca-desktop/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/pachca/pachca-desktop/releases "$file") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -11,6 +11,6 @@ URL="https://github.com/PCSX2/pcsx2/releases"
# https://github.com/PCSX2/pcsx2/releases/download/v1.7.4767/pcsx2-v1.7.4767-linux-appimage-x64-Qt.AppImage
file="pcsx2-v${VERSION}-linux-appimage-x64-Qt.AppImage"
PKGURL=$(eget --list --latest https://github.com/PCSX2/pcsx2/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/PCSX2/pcsx2/releases "$file") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
......@@ -31,7 +31,7 @@ repack=''
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_amd64.deb
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_i386.deb
PKGMASK="$(epm print constructname $PKGNAME "$VERSION.ga" $arch)"
mask="$(epm print constructname $PKGNAME "$VERSION.ga" $arch)"
PKGURL="$(eget --list --latest https://pencil.evolus.vn/Downloads.html $PKGMASK)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest https://pencil.evolus.vn/Downloads.html "$mask")" || fatal "Can't get package URL"
epm $repack install "$PKGURL"
......@@ -9,7 +9,7 @@ DESCRIPTION='PortProton (from the repository if the package is there, or from th
res=0
if ! epm install portproton ; then
PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases portproton_${VERSION}amd64.deb)"
PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases "portproton_${VERSION}amd64.deb")"
epm install $PKGURL
res=$?
fi
......
......@@ -26,7 +26,7 @@ case $(epm print info -e) in
;;
esac
PKGURL=$(eget --list --latest $BASEURL $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest $BASEURL "$file") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -16,16 +16,16 @@ repack=''
case $pkgtype-$arch in
rpm-x86_64)
PKG="VNC-Server-$VERSION-Linux-x64.rpm"
mask="VNC-Server-$VERSION-Linux-x64.rpm"
;;
*-x86_64)
PKG="VNC-Server-$VERSION-Linux-x64.deb"
mask="VNC-Server-$VERSION-Linux-x64.deb"
;;
*)
fatal "Unsupported arch"
;;
esac
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/vnc/ $PKG) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/vnc/ "$mask") || fatal "Can't get package URL"
epm $repack install $PKGURL
......@@ -32,6 +32,6 @@ case $pkgtype-$arch in
;;
esac
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/viewer/ $PKG) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://www.realvnc.com/en/connect/download/viewer/ "$PKG") || fatal "Can't get package URL"
epm $repack install $PKGURL
......@@ -10,6 +10,6 @@ URL="https://rpcs3.net/download"
file="rpcs3-v${VERSION}-*-*_linux64.AppImage"
PKGURL=$(eget --list --latest https://github.com/RPCS3/rpcs3-binaries-linux/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/RPCS3/rpcs3-binaries-linux/releases "$file") || fatal "Can't get package URL"
epm pack --install "$PKGNAME" "$PKGURL"
......@@ -41,6 +41,6 @@ case $(epm print info -e) in
esac
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype "-" "-")"
PKGURL="$(eget --list https://www.rstudio.com/products/rstudio/download/ $PKGMASK | grep $PKGFILTER)" || fatal "Can't get package URL"
PKGURL="$(eget --list https://www.rstudio.com/products/rstudio/download/ "$PKGMASK" | grep "$PKGFILTER")" || fatal "Can't get package URL"
epm install $repack "$PKGURL"
......@@ -11,8 +11,8 @@ URL="https://slack.com"
arch=x86_64
pkgtype=rpm
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)"
PKGURL="$(eget --list --latest https://slack.com/downloads/instructions/fedora $PKGMASK)" || fatal "Can't get package URL"
mask="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)"
PKGURL="$(eget --list --latest https://slack.com/downloads/instructions/fedora "$mask")" || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm install --repack "$PKGURL"
......@@ -15,6 +15,6 @@ fi
[ "$VERSION" != "*" ] && VERSION="$VERSION-1.1"
PKGURL=$(eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases ungoogled-chromium_${VERSION}_linux.tar.xz) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases "ungoogled-chromium_${VERSION}_linux.tar.xz") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -12,7 +12,7 @@ arch="$(epm print info -a)"
mask="dhcoapp-noffmpeg-linux-$arch.deb"
PKGURL=$(eget --list --latest https://github.com/aclap-dev/vdhcoapp/releases/ $mask) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/aclap-dev/vdhcoapp/releases/ "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
......
......@@ -11,7 +11,7 @@ URL="https://vinteo.com"
arch=amd64
pkgtype=deb
[ "$VERSION" = "*" ] && VERSION="$(eget --list --latest https://download.vinteo.com/VinteoClient/linux/3.* | xargs basename)"
[ "$VERSION" = "*" ] && VERSION="$(eget --list --latest "https://download.vinteo.com/VinteoClient/linux/3.*" | xargs basename)"
[ -n "$VERSION" ] || fatal "Can't get version"
# use rpm, but not for ALT
......
......@@ -11,6 +11,6 @@ URL="https://github.com/nroduit/Weasis"
arch="$(epm print info --debian-arch)"
file="weasis_$VERSION-1_$arch.deb"
PKGURL=$(eget --list --latest https://github.com/nroduit/Weasis/releases $file) || fatal "Can't get package URL"
PKGURL=$(eget --list --latest https://github.com/nroduit/Weasis/releases "$file") || fatal "Can't get package URL"
epm install "$PKGURL"
......@@ -14,7 +14,7 @@ URL="https://wingware.com/"
BASEURL="https://wingware.com/pub/wing-personal"
if [ "$VERSION" = "*" ] ; then
DIRVERSION="$(eget --list --latest $BASEURL/10.* | xargs basename)"
DIRVERSION="$(eget --list --latest "$BASEURL/10.*" | xargs basename)"
VERSION="$(echo $DIRVERSION | sed -e 's|\.[0-9]$||')"
else
# TODO: get full version from site
......@@ -33,7 +33,7 @@ case $pkgtype in
;;
esac
PKGURL="$(eget --list --latest $BASEURL/$DIRVERSION/ $mask)" || fatal "Can't get package URL"
PKGURL="$(eget --list --latest $BASEURL/$DIRVERSION/ "$mask")" || fatal "Can't get package URL"
#PKGURL="https://wingware.com/pub/wing-personal/$VERSION/$mask"
repack=''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment