diff --git a/install/sublimetext b/install/sublimetext index 0ad0ffb..8b66fff 100755 --- a/install/sublimetext +++ b/install/sublimetext @@ -5,7 +5,7 @@ source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 25 # https://www.sublimetext.com/download_thanks?target=x64-deb # https://gist.github.com/skoqaq/3f3e8f28e23c881143cef9cf49d821ff -[ "$1" ] && STVER="$1" || STVER='4180' +[ "$1" ] && STVER="$1" || STVER='4189' title @@ -15,16 +15,14 @@ download https://download.sublimetext.com/sublime-text_build-${STVER}_amd64.deb "$HOME/install/sublime-text_build-${STVER}_amd64.deb" && \ sudo dpkg -i "$HOME/install/sublime-text_build-${STVER}_amd64.deb" -sudo cp /opt/sublime_text/sublime_text /opt/sublime_text/sublime_text.old -if [[ $STVER = '4169' ]]; then +sudo cp -f /opt/sublime_text/sublime_text /opt/sublime_text/sublime_text.old +if [[ $STVER = 4169 ]]; then echo "00489f39: c640 0501 4885 c9" | sudo xxd -r - /opt/sublime_text/sublime_text -elif [[ $STVER = '4180' ]]; then +else sudo sed -i 's/\x80\x79\x05\x00\x0F\x94\xC2/\xC6\x41\x05\x01\xB2\x00\x90/' /opt/sublime_text/sublime_text fi -[ $? = 0 ] && { - echo - success "Sublime Text installed!" - subl --version - echo -} +echo +success "Sublime Text installed!" +subl --version +echo