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() {