This commit is contained in:
parent
328751adf0
commit
8d92b4adda
2
trash.sh
2
trash.sh
@ -41,7 +41,7 @@ trash_rm() {
|
|||||||
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
|
||||||
\rm -Irf "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
\rm -rf "$HOME"/.trash/"$FILE_TO_REMOVE" && sed -i "/$FILE_TO_REMOVE/d" "$FILE_PATHS_FILE"
|
||||||
else
|
else
|
||||||
echo "$FILE_TO_REMOVE is not in Trash." && false
|
echo "$FILE_TO_REMOVE is not in Trash." && false
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user