more clear listing of folders

This commit is contained in:
ville rantanen
2019-01-13 11:12:07 +02:00
parent 36cc2f3da5
commit e9128ca8b6

View File

@@ -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<ctrl-c> to quit$Z\n"
echo $Z
for folder in "${REALFOLDERS[@]}"; do echo "'$folder'"; done
printf "$S<ctrl-c> to quit$Z\n"
read foo
set -o pipefail