I would suggest the following enhancement:
Changing line 65 from:
print_pgp_key | apt-key add -
to:
print_pgp_key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/metasploit-framework.gpg
Maybe omit the tee, as the output is not really usefull.
See also: https://opensource.com/article/22/9/deprecated-linux-apt-key
Manage keyring files in trusted.gpg.d instead.
I would suggest the following enhancement: Changing line 65 from:
print_pgp_key | apt-key add -
to:print_pgp_key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/metasploit-framework.gpg
Maybe omit the tee, as the output is not really usefull. See also: https://opensource.com/article/22/9/deprecated-linux-apt-key