From e37a7f50fa05a89e639bb729bf4df42e82fb528f Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Tue, 21 Jun 2022 09:19:34 +0200 Subject: [PATCH] Similify Deb/Ubuntu ppa cli ternary expression --- assets/js/releases.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/js/releases.js b/assets/js/releases.js index 7bce9f6..dad965e 100644 --- a/assets/js/releases.js +++ b/assets/js/releases.js @@ -62,9 +62,8 @@ jQuery(function($) { 'git clone https://aur.archlinux.org/ulauncher-git.git && cd ulauncher-git && makepkg -is'; $('#aur-shell').html(aurShell); - var ubuntuPpa = selectStable ? 'sudo add-apt-repository ppa:agornostal/ulauncher && sudo apt update && sudo apt install ulauncher' : - 'sudo add-apt-repository ppa:agornostal/ulauncher-dev && sudo apt update && sudo apt install ulauncher'; - $('#ubuntu-ppa').html(ubuntuPpa); + var launchpadPackage = selectStable ? 'ulauncher' : 'ulauncher-dev'; + $('#ubuntu-ppa').html('sudo add-apt-repository ppa:agornostal/' + launchpadPackage + ' && sudo apt update && sudo apt install ulauncher'); renderReleaseLinks(selectStable ? stable : dev); }