Make this script slightly safer

This commit is contained in:
RealStickman 2020-11-17 21:18:37 +01:00
parent 2cde09fc9b
commit c737f42af9

View File

@ -2,5 +2,13 @@
set -euo pipefail set -euo pipefail
rm -rvf $HOME/.local/share/Trash if [ -d "$HOME/.local/share/Trash" ]; then
rm -rvf /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/ rm -rvf "$HOME/.local/share/Trash"
fi
if [ -d "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/" ]; then
rm -rvf /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/
fi
exit 0