This commit is contained in:
parent
10d4f8d2ad
commit
8492f4ea64
2
trash.sh
2
trash.sh
@ -38,7 +38,7 @@ trash_restore() {
|
|||||||
|
|
||||||
trash_rm() {
|
trash_rm() {
|
||||||
for FILE_TO_REMOVE in "$@"; do
|
for FILE_TO_REMOVE in "$@"; do
|
||||||
if [[ ! "$FILE_TO_REMOVE" =~ $HOME/.trash ]]
|
if ! echo "$FILE_TO_REMOVE" | grep "$HOME/.trash"
|
||||||
then FILE_TO_REMOVE="$HOME/.trash/$FILE_TO_REMOVE"
|
then FILE_TO_REMOVE="$HOME/.trash/$FILE_TO_REMOVE"
|
||||||
fi
|
fi
|
||||||
if [ -f "$FILE_TO_REMOVE" ]; then
|
if [ -f "$FILE_TO_REMOVE" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user