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 68ce83ed3a97c06dedc675c0dcbea14ed5f65f86.
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
|
# Store old filepath for later restore
|
||||||
echo "$FILE $(readlink -f "$FILE")" >>"$FILE_PATHS_FILE"
|
echo "$FILE $(readlink -f "$FILE")" >>"$FILE_PATHS_FILE"
|
||||||
done
|
done
|
||||||
mv -v "$*" "$HOME"/.trash/
|
mv -v $* "$HOME"/.trash/
|
||||||
}
|
}
|
||||||
|
|
||||||
trash_empty() {
|
trash_empty() {
|
||||||
@ -37,7 +37,7 @@ trash_restore() {
|
|||||||
|
|
||||||
trash_rm() {
|
trash_rm() {
|
||||||
for FILE_TO_REMOVE in "$@"; do
|
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"
|
then FILEPATH_TO_REMOVE="$HOME/.trash/$FILE_TO_REMOVE"
|
||||||
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
|
else FILEPATH_TO_REMOVE="$FILE_TO_REMOVE"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user