Skip to content

Commit

Permalink
Similify Deb/Ubuntu ppa cli ternary expression
Browse files Browse the repository at this point in the history
  • Loading branch information
friday committed Jun 21, 2022
1 parent b675350 commit e37a7f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '<code>sudo add-apt-repository ppa:agornostal/ulauncher && sudo apt update && sudo apt install ulauncher</code>' :
'<code>sudo add-apt-repository ppa:agornostal/ulauncher-dev && sudo apt update && sudo apt install ulauncher</code>';
$('#ubuntu-ppa').html(ubuntuPpa);
var launchpadPackage = selectStable ? 'ulauncher' : 'ulauncher-dev';
$('#ubuntu-ppa').html('<code>sudo add-apt-repository ppa:agornostal/' + launchpadPackage + ' && sudo apt update && sudo apt install ulauncher</code>');

renderReleaseLinks(selectStable ? stable : dev);
}
Expand Down

0 comments on commit e37a7f5

Please sign in to comment.