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:
parent
85d148fd9a
commit
df0d304d27
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue