Revert "change image from ubuntu to bash"
Some checks failed
continuous-integration/drone/push Build is failing

This reverts commit 68ce83ed3a.
This commit is contained in:
Kim Oliver Drechsel 2021-09-21 20:14:34 +02:00
parent 68ce83ed3a
commit 8bbf43ebfb

View File

@ -14,7 +14,7 @@ trash_put() {
# Store old filepath for later restore
echo "$FILE $(readlink -f "$FILE")" >>"$FILE_PATHS_FILE"
done
mv -v "$*" "$HOME"/.trash/
mv -v $* "$HOME"/.trash/
}
trash_empty() {
@ -37,7 +37,7 @@ trash_restore() {
trash_rm() {
for FILE_TO_REMOVE in "$@"; do
if ! "$FILE_TO_REMOVE" ~= grep "$HOME"/.trash
if ! echo "$FILE_TO_REMOVE" | grep "$HOME/.trash"
then FILEPATH_TO_REMOVE="$HOME/.trash/$FILE_TO_REMOVE"
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
fi