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