Files
signature-rM/remove-signature-rm.sh
rM-self-serve b3bf240ec9 fmt
2023-11-28 23:51:47 -06:00

28 lines
584 B
Bash

#!/usr/bin/env bash
pkgname='signature-rm'
removefile='./remove-signature-rm.sh'
localbin='/home/root/.local/bin'
binfile="${localbin}/${pkgname}"
printf "\nRemove %s\n" "$pkgname"
echo 'Make sure to revert the modifications before uninstalling'
read -r -p "Would you like to continue with removal? [y/N] " response
case "$response" in
[yY][eE][sS] | [yY])
echo "Removing $pkgname"
;;
*)
echo "Exiting removal"
[[ -f $removefile ]] && rm $removefile
exit
;;
esac
[[ -f $binfile ]] && rm $binfile
[[ -f $removefile ]] && rm $removefile
echo "Successfully removed $pkgname"