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 - name: test trash_restore
depends_on: depends_on:
- install - install
- test trash_empty
image: ubuntu:latest image: ubuntu:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
@ -53,6 +54,7 @@ steps:
- name: test trash_rm - name: test trash_rm
depends_on: depends_on:
- install - install
- trash_restore
image: ubuntu:latest image: ubuntu:latest
pull: if-not-exists pull: if-not-exists
commands: commands:

View File

@ -10,11 +10,11 @@ trash_list() {
} }
trash_put() { trash_put() {
for FILE in "$@"; do for FILE in $@; do
# 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 -uv $* "$HOME"/.trash/ mv -v $* "$HOME"/.trash/
} }
trash_empty() { trash_empty() {