Uninstall packages too

This commit is contained in:
David Heinemeier Hansson
2025-07-17 14:53:45 -07:00
parent 68e77daffa
commit 9467b56be0

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
if [[ "--remove" == "$1" ]]; then if [[ "--remove" == "$1" ]]; then
yay -Rns --noconfirm libfido2 pam-u2f
sudo rm -rf /etc/fido2 sudo rm -rf /etc/fido2
sudo sed -i '\|^auth[[:space:]]\+sufficient[[:space:]]\+pam_u2f\.so[[:space:]]\+cue[[:space:]]\+authfile=/etc/fido2/fido2$|d' /etc/pam.d/sudo sudo sed -i '\|^auth[[:space:]]\+sufficient[[:space:]]\+pam_u2f\.so[[:space:]]\+cue[[:space:]]\+authfile=/etc/fido2/fido2$|d' /etc/pam.d/sudo
echo -e "\e[32mYou've successfully removed the fido2 device setup.\e[0m" echo -e "\e[32m\nYou've successfully removed the fido2 device setup.\e[0m"
else else
yay -S --noconfirm --needed libfido2 pam-u2f yay -S --noconfirm --needed libfido2 pam-u2f