Windows 10 theme: skip uninstall script if missing

pull/953/head
Botspot 3 years ago
parent 366c9ab4f3
commit 16d0bcc9f2

@ -7,10 +7,10 @@ function error {
exit 1
}
if [ ! -f ~/Windows-10/uninstall ];then
error "Windows 10 uninstall script missing!"
if [ -f ~/Windows-10/uninstall ];then
setsid ~/Windows-10/uninstall &
else
echo "WARNING: Windows 10 theme's uninstall script is missing!"
fi
setsid ~/Windows-10/uninstall &
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1

Loading…
Cancel
Save