more clear listing of folders
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION="20170907"
|
VERSION="20190113"
|
||||||
|
|
||||||
function helpexit() {
|
function helpexit() {
|
||||||
BS=$( basename "$0" )
|
BS=$( basename "$0" )
|
||||||
@@ -17,7 +17,7 @@ function helpexit() {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
function listfolders() {
|
function listfolders() {
|
||||||
find "$@" -mindepth $DEPTH -maxdepth $DEPTH -type d | sort
|
find "$@" -mindepth $DEPTH -maxdepth $DEPTH -type d | sort -V
|
||||||
}
|
}
|
||||||
function count_size() {
|
function count_size() {
|
||||||
|
|
||||||
@@ -89,9 +89,9 @@ echo -n $S"Archive the following folders "
|
|||||||
} || {
|
} || {
|
||||||
[[ "$COMPRESSION" -eq 1 ]] && echo -n with gzip compression
|
[[ "$COMPRESSION" -eq 1 ]] && echo -n with gzip compression
|
||||||
}
|
}
|
||||||
echo ':'$Z
|
echo $Z
|
||||||
for folder in "${REALFOLDERS[@]}"; do echo -n "'$folder', "; done | sed -e "s/..$//"
|
for folder in "${REALFOLDERS[@]}"; do echo "'$folder'"; done
|
||||||
printf "\n$S<ctrl-c> to quit$Z\n"
|
printf "$S<ctrl-c> to quit$Z\n"
|
||||||
read foo
|
read foo
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user