Skip to content

Commit

Permalink
use sudo when removing keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfortner authored and theofficialgman committed Dec 28, 2023
1 parent 3c9f4a1 commit b308528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ add_external_repo() { # add an external apt repo and its gpg key
[ -f /etc/apt/sources.list.d/${reponame}.list ] && error "add_external_repo: /etc/apt/sources.list.d/${reponame}.list already exists."

# download gpg key from specified url
rm -f /usr/share/keyrings/${reponame}-keyring.gpg
sudo rm -f /usr/share/keyrings/${reponame}-keyring.gpg
curl -fsSL "$pubkeyurl" | sudo gpg --dearmor -o /usr/share/keyrings/${reponame}-keyring.gpg

if [ $? != 0 ];then
Expand Down

0 comments on commit b308528

Please sign in to comment.