This commit is contained in:
parent
3f25c96eb4
commit
ec22f86714
@ -55,7 +55,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- install
|
||||||
- test trash_restore
|
- test trash_restore
|
||||||
image: ubuntu:latest
|
image: bash:latest
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
|
3
trash.sh
3
trash.sh
@ -19,8 +19,7 @@ trash_put() {
|
|||||||
|
|
||||||
trash_empty() {
|
trash_empty() {
|
||||||
echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | wc -l) files in trash?"
|
echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | wc -l) files in trash?"
|
||||||
# shellcheck disable=SC2086
|
\rm -Ir "$HOME"/.trash/* && echo >"$FILE_PATHS_FILE"
|
||||||
\rm -Ir $HOME/.trash/* && echo >"$FILE_PATHS_FILE"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trash_restore() {
|
trash_restore() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user