Skip to content

Commit

Permalink
fix(sublime): Install sublime-merge on arm too
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 9, 2023
1 parent 602ac13 commit ae16e72
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions installations/sublime
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ install() {
local ARCH
ARCH="$(normalized_arch)"

if [[ ${ARCH} == "x86_64" ]]; then
if command -v pacman >/dev/null 2>&1 && [[ $(grep -c "sublime-text" "/etc/pacman.conf") -eq 0 ]]; then
curl --disable --silent --show-error --location --max-time 30 "https://download.sublimetext.com/sublimehq-pub.gpg" | sudo pacman-key --add -
sudo pacman-key --lsign-key "8A8F901A"
printf "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/%s" "${ARCH}" | sudo tee -a "/etc/pacman.conf"
fi

if package_exists sublime-merge; then
packages_install_desktop sublime-merge
fi
if command -v pacman >/dev/null 2>&1 && [[ $(grep -c "sublime-text" "/etc/pacman.conf") -eq 0 ]]; then
curl --disable --silent --show-error --location --max-time 30 "https://download.sublimetext.com/sublimehq-pub.gpg" | sudo pacman-key --add -
sudo pacman-key --lsign-key "8A8F901A"
printf "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/%s" "${ARCH}" | sudo tee -a "/etc/pacman.conf"
fi

if package_exists sublime-merge; then
packages_install_desktop sublime-merge
fi

local SUBLIME_TEXT_VERSION
Expand Down

0 comments on commit ae16e72

Please sign in to comment.