From e9128ca8b62b5cb98db274cf0a9b5ddc906d67a2 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Sun, 13 Jan 2019 11:12:07 +0200 Subject: [PATCH] more clear listing of folders --- files/archive-subfolders | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/archive-subfolders b/files/archive-subfolders index 0b94437..d0e90d4 100755 --- a/files/archive-subfolders +++ b/files/archive-subfolders @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="20170907" +VERSION="20190113" function helpexit() { BS=$( basename "$0" ) @@ -17,7 +17,7 @@ function helpexit() { exit } function listfolders() { - find "$@" -mindepth $DEPTH -maxdepth $DEPTH -type d | sort + find "$@" -mindepth $DEPTH -maxdepth $DEPTH -type d | sort -V } function count_size() { @@ -89,9 +89,9 @@ echo -n $S"Archive the following folders " } || { [[ "$COMPRESSION" -eq 1 ]] && echo -n with gzip compression } -echo ':'$Z -for folder in "${REALFOLDERS[@]}"; do echo -n "'$folder', "; done | sed -e "s/..$//" -printf "\n$S to quit$Z\n" +echo $Z +for folder in "${REALFOLDERS[@]}"; do echo "'$folder'"; done +printf "$S to quit$Z\n" read foo set -o pipefail