fix trash_rm
This commit is contained in:
parent
b0016b392e
commit
8bf0080654
2
trash.sh
2
trash.sh
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user