From 5719b72c1ce234f2f17235998836cfdafa5370d4 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 18:48:28 +0200 Subject: [PATCH] fix step order --- .drone.yml | 2 ++ trash.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 92e8c5b..80a825e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/trash.sh b/trash.sh index 2300560..326eb04 100644 --- a/trash.sh +++ b/trash.sh @@ -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() {