tiny fixes
This commit is contained in:
@@ -8,7 +8,6 @@ function helpexit() {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
tput rmam
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
FOLDERS=( )
|
FOLDERS=( )
|
||||||
for ((i=1; i<=${#@}; i++)) {
|
for ((i=1; i<=${#@}; i++)) {
|
||||||
@@ -56,6 +55,9 @@ function deletefolders() {
|
|||||||
done < <(find "$@" -depth -type d -print0)
|
done < <(find "$@" -depth -type d -print0)
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
# stop line wrapping
|
||||||
|
printf '\033[?7l'
|
||||||
|
trap "printf '\033[?7h'" 1 9 15
|
||||||
echo Listing files in "${FOLDERS[@]}" ...
|
echo Listing files in "${FOLDERS[@]}" ...
|
||||||
files=0
|
files=0
|
||||||
folders=0
|
folders=0
|
||||||
@@ -70,4 +72,5 @@ deletefiles "${FOLDERS[@]}"
|
|||||||
listfolders "${FOLDERS[@]}"
|
listfolders "${FOLDERS[@]}"
|
||||||
echo Removing remaining $folders folders
|
echo Removing remaining $folders folders
|
||||||
deletefolders "${FOLDERS[@]}"
|
deletefolders "${FOLDERS[@]}"
|
||||||
tput smam
|
# line wrapping
|
||||||
|
printf '\033[?7h'
|
||||||
|
|||||||
Reference in New Issue
Block a user