You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Botspot-Pi-Apps/apps/template/uninstall

11 lines
278 B
Plaintext

5 years ago
#!/bin/bash
5 years ago
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
5 years ago
function error {
echo -e "\\e[31m$1\\e[39m"
5 years ago
exit 1
}
5 years ago
#if your app installs any packages, keep this command here so those packages will be removed.
5 years ago
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1