mirror of
https://github.com/rM-self-serve/signature-rM.git
synced 2025-09-04 19:41:26 +00:00
28 lines
584 B
Bash
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"
|