fix step order
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
3c09b37c3a
commit
5719b72c1c
@ -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:
|
||||||
|
4
trash.sh
4
trash.sh
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user