fix step order
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 18:48:28 +02:00
parent 3c09b37c3a
commit 5719b72c1c
2 changed files with 4 additions and 2 deletions

View File

@ -35,6 +35,7 @@ steps:
- name: test trash_restore
depends_on:
- install
- test trash_empty
image: ubuntu:latest
pull: if-not-exists
commands:
@ -53,6 +54,7 @@ steps:
- name: test trash_rm
depends_on:
- install
- trash_restore
image: ubuntu:latest
pull: if-not-exists
commands:

View File

@ -10,11 +10,11 @@ trash_list() {
}
trash_put() {
for FILE in "$@"; do
for FILE in $@; do
# Store old filepath for later restore
echo "$FILE $(readlink -f "$FILE")" >> "$FILE_PATHS_FILE"
done
mv -uv $* "$HOME"/.trash/
mv -v $* "$HOME"/.trash/
}
trash_empty() {