sublimetext update

This commit is contained in:
2025-05-14 18:49:44 +08:00
parent 96bd945ef2
commit 4c57a180ac

View File

@@ -7,16 +7,16 @@ source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 25
# https://gist.github.com/lugrus2000/1fc55158b87f94d799392a6dd1ac0ce2
# https://gist.github.com/maboloshi/feaa63c35f4c2baab24c9aaf9b3f4e47
[ "$1" ] && STVER="$1" || STVER='4189'
[ "$1" ] && STVER="$1" || STVER='4192'
title
mkdir -p "$HOME/install"
DEB_PATH="$HOME/install/sublime-text_build-${SMVER}_amd64.deb"
DEB_PATH="$HOME/install/sublime-text_build-${STVER}_amd64.deb"
BIN_PATH="/opt/sublime_text/sublime_text"
if [[ ! -f "$DEB_PATH" ]]; then
download https://download.sublimetext.com/sublime-text_build-${STVER}_amd64.deb "$DEB_PATH"
download "https://download.sublimetext.com/sublime-text_build-${STVER}_amd64.deb" "$DEB_PATH"
fi
sudo dpkg -i "$DEB_PATH"