This commit is contained in:
parent
8492f4ea64
commit
3f25c96eb4
2
trash.sh
2
trash.sh
@ -42,7 +42,7 @@ trash_rm() {
|
||||
then FILE_TO_REMOVE="$HOME/.trash/$FILE_TO_REMOVE"
|
||||
fi
|
||||
if [ -f "$FILE_TO_REMOVE" ]; then
|
||||
\rm -Ir "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
||||
\rm -Irf "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
||||
else
|
||||
echo "$FILE_TO_REMOVE is not in Trash." && false
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user