more clear listing of folders
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user