Skip to content

Commit

Permalink
Land #196, Bug fix: remove sudo from gpg command
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 authored Apr 19, 2024
2 parents f73c3fa + 9237d99 commit 44803b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ install_deb() {
PREF_FILE=/etc/apt/preferences.d/pin-metasploit.pref
echo -n "Adding metasploit-framework to your repository list.."
echo "deb [signed-by=/usr/share/keyrings/metasploit-framework.gpg] $DOWNLOAD_URI/apt lucid main" > $LIST_FILE
print_pgp_key | sudo gpg --dearmor -o /usr/share/keyrings/metasploit-framework.gpg
print_pgp_key | gpg --dearmor -o /usr/share/keyrings/metasploit-framework.gpg
if [ ! -f $PREF_FILE ]; then
mkdir -p /etc/apt/preferences.d/
cat > $PREF_FILE <<EOF
Expand Down

0 comments on commit 44803b4

Please sign in to comment.