Skip to content

Commit

Permalink
A bit less repetition
Browse files Browse the repository at this point in the history
Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com>
  • Loading branch information
fredericgiquel and kenyon authored Mar 13, 2024
1 parent b5e00e5 commit 7bd0ee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/ppa.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
$underscore_filename_no_slashes = regsubst($underscore_filename, '/', '-', 'G')
$underscore_filename_no_specialchars = regsubst($underscore_filename_no_slashes, '[\.\+]', '_', 'G')

if versioncmp($facts['os']['release']['full'], '23.10') < 0 {
$sources_list_d_filename = "${dash_filename_no_specialchars}-${release}.list"
$sources_list_d_filename = if versioncmp($facts['os']['release']['full'], '23.10') < 0 {
"${dash_filename_no_specialchars}-${release}.list"
} else {
$sources_list_d_filename = "${dash_filename_no_specialchars}-${release}.sources"
$"${dash_filename_no_specialchars}-${release}.sources"
}

if versioncmp($facts['os']['release']['full'], '21.04') < 0 {
Expand Down

0 comments on commit 7bd0ee4

Please sign in to comment.