Commit 354743f8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play sublime: fix download URL

parent 2fec847a
......@@ -18,15 +18,15 @@ case "$arch" in
;;
esac
PKG=$(epm tool eget --list --latest https://www.sublimetext.com/download "sublime_text_build_*_$arch.tar.xz") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://www.sublimetext.com/download "sublime_text_build_*_$arch.tar.xz") || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
PKGFILE=$(echo /tmp/$(basename $PKGURL) | sed -e "s|/sublime_text_build_|/$PKGNAME-|")
epm tool eget -O $PKGFILE $PKGURL || exit
epm install --repack "$PKG" || exit
epm install --repack "$PKGFILE" || exit
rm -fv $PKGFILE
echo
echo "NOTE: Sublime Text 4 is a proprietary software. We recommend use open source editors: Codium, VS Code, Atom."
echo "NOTE: Sublime Text 4 is a proprietary software. We recommend to use open source editors: Codium, VS Code, Atom."
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