Revert "change image from ubuntu to bash"
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This reverts commit 68ce83ed3a
.
This commit is contained in:
parent
68ce83ed3a
commit
8bbf43ebfb
4
trash.sh
4
trash.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user