chore(gnome-extensions): Add safe-check for main extension directory on uninstallation
This commit is contained in:
parent
629ab53d52
commit
22f18acd65
1 changed files with 8 additions and 2 deletions
|
|
@ -209,8 +209,14 @@ if [[ ${#UNINSTALL[@]} -gt 0 ]]; then
|
|||
echo "There is no gschema xml to remove, since extension doesn't have any settings"
|
||||
fi
|
||||
# Removing main extension files
|
||||
echo "Removing main extension files"
|
||||
rm -r "${EXT_FILES}"
|
||||
if [[ -d "${EXT_FILES}" ]]
|
||||
echo "Removing main extension files"
|
||||
rm -r "${EXT_FILES}"
|
||||
else
|
||||
echo "ERROR: There are no main extension files to remove from the base image"
|
||||
echo " It is possible that the extension that you inputted is not actually installed"
|
||||
exit 1
|
||||
fi
|
||||
echo "----------------------------------UNINSTALLATION DONE----------------------------------"
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue