Make this script slightly safer
This commit is contained in:
parent
2cde09fc9b
commit
c737f42af9
@ -2,5 +2,13 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
rm -rvf $HOME/.local/share/Trash
|
||||
rm -rvf /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/.Trash-1000/
|
||||
if [ -d "$HOME/.local/share/Trash" ]; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user