1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

fix dearmor

This commit is contained in:
yalh76 2019-04-02 00:55:10 +02:00
parent 85d148fd9a
commit df0d304d27

View file

@ -274,13 +274,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