fix trash_rm

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 18:53:10 +02:00
parent b0016b392e
commit 8bf0080654

View File

@ -41,7 +41,7 @@ trash_rm() {
if readlink -f "$FILE_TO_REMOVE" | grep "$HOME/.trash"; then if readlink -f "$FILE_TO_REMOVE" | grep "$HOME/.trash"; then
\rm -Ir "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE" \rm -Ir "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
else else
echo "$i is not in Trash." && false echo "$FILE_TO_REMOVE is not in Trash." && false
fi fi
done done
} }