Drawing: skip apt if drawing command not found

pull/899/head
Botspot 3 years ago
parent 273fc348d1
commit 41a67d750c

@ -6,4 +6,7 @@ function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
sudo apt purge -y drawing || error "apt failed to uninstall the 'drawing' package."
if command -v drawing >/dev/null ;then
sudo apt purge -y drawing || error "apt failed to uninstall the 'drawing' package."
fi

Loading…
Cancel
Save