diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/saferm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/saferm b/bin/saferm index 10c59a7..6cfed12 100755 --- a/bin/saferm +++ b/bin/saferm @@ -43,11 +43,11 @@ for ((idx = OPTIND; idx <= $#; idx++)); do if [ -d "${!idx}" ]; then tput setaf 1 ( - exa --color=never --all --tree "${!idx}" >&2 + exa --color=never --all --tree -- "${!idx}" >&2 echo "!" - echo "!" "$(du -sh --total "${!idx}" | grep total)" - echo "!" "$(fd --no-ignore --type file . "${!idx}" | wc -l)" "files" - echo "!" "$(fd --no-ignore --type directory . "${!idx}" | wc -l)" "directories" + echo "!" "$(du -sh --total -- "${!idx}" | grep total)" + echo "!" "$(fd --no-ignore --type file -- . "${!idx}" | wc -l)" "files" + echo "!" "$(fd --no-ignore --type directory -- . "${!idx}" | wc -l)" "directories" echo "!" ) >&2 tput sgr0 @@ -64,7 +64,7 @@ if [ ${#files[@]} -gt 0 ]; then tput setaf 1 ( echo "!" - echo "!" "$(du -sh --total "${files[@]}" | grep total)" + echo "!" "$(du -sh --total -- "${files[@]}" | grep total)" echo "!" "${#files[@]}" "files" echo "!" ) >&2 |