enhance checkShrinker
This commit is contained in:
parent
e0f1e8f2f7
commit
333402a9f2
@ -51,6 +51,14 @@ YELLOW='\e[0;33m'
|
|||||||
BLUE='\e[0;34m'
|
BLUE='\e[0;34m'
|
||||||
MAGENTA='\e[0;35m'
|
MAGENTA='\e[0;35m'
|
||||||
CYAN='\e[0;36m'
|
CYAN='\e[0;36m'
|
||||||
|
GREY='\e[0;90m'
|
||||||
|
BG_BLACK='\e[0;40m'
|
||||||
|
BG_RED='\e[0;41m'
|
||||||
|
BG_GREEN='\e[0;42m'
|
||||||
|
BG_YELLOW='\e[0;43m'
|
||||||
|
BG_BLUE='\e[0;44m'
|
||||||
|
BG_MAGENTA='\e[0;45m'
|
||||||
|
CYAN='\e[0;36m'
|
||||||
NC='\e[0m' # No Color
|
NC='\e[0m' # No Color
|
||||||
NL='
|
NL='
|
||||||
'
|
'
|
||||||
@ -65,13 +73,27 @@ case "${ATTACH_MODE}" in
|
|||||||
*) usage;;
|
*) usage;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for mbox in $*; do
|
|
||||||
clear
|
start=0
|
||||||
echo -e " ${GREEN}${BOLD}${mbox}${NC}\n"
|
loop=true
|
||||||
"${FILTER_TEST}" -s -m "${ATTACH_MODE}" "${mbox}"
|
while [ ! -z "${loop}" ]; do
|
||||||
echo -en "\n(q = quit / default = continue)? "
|
loop=""
|
||||||
read rep
|
count=0
|
||||||
case "${rep}" in
|
for mbox in $*; do
|
||||||
"q" ) break;;
|
clear
|
||||||
esac
|
((count=count+1))
|
||||||
|
(( count < start )) && continue
|
||||||
|
echo -e " ${GREY}${count}/$# ${GREEN}${BOLD}${mbox}${NC}\n"
|
||||||
|
"${FILTER_TEST}" -s -m "${ATTACH_MODE}" "${mbox}"
|
||||||
|
echo -en "\n(q = quit / [0-9]* = goto / default = continue)? "
|
||||||
|
read rep
|
||||||
|
case "${rep}" in
|
||||||
|
"q" ) break;;
|
||||||
|
[0-9]* )
|
||||||
|
start="${rep}"
|
||||||
|
(( count < start )) && continue
|
||||||
|
loop=true
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user