From d24dccd332e085c49bd16d092bebf66287d5426b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 2 Apr 2019 04:14:24 +0200 Subject: [PATCH] Fix ynh_add_secure_repos_2 --- scripts/ynh_add_secure_repos__2 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/ynh_add_secure_repos__2 b/scripts/ynh_add_secure_repos__2 index 7db7843..1e046ea 100644 --- a/scripts/ynh_add_secure_repos__2 +++ b/scripts/ynh_add_secure_repos__2 @@ -137,13 +137,7 @@ ynh_install_extra_repo () { if [ -n "$key" ] then mkdir -p "/etc/apt/trusted.gpg.d" - if [[ "$(basename "$key")" =~ ".asc" ]] - then - local key_ext=asc - else - local key_ext=gpg - fi - wget -q "$key" -O - | gpg --dearmor | $wget_append /etc/apt/trusted.gpg.d/$name.$key_ext > /dev/null + wget -q "$key" -O - | gpg --dearmor | $wget_append /etc/apt/trusted.gpg.d/$name.gpg > /dev/null fi # Update the list of package with the new repo