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
|
||||||
|
|
||||||
|
|
||||||
|
start=0
|
||||||
|
loop=true
|
||||||
|
while [ ! -z "${loop}" ]; do
|
||||||
|
loop=""
|
||||||
|
count=0
|
||||||
for mbox in $*; do
|
for mbox in $*; do
|
||||||
clear
|
clear
|
||||||
echo -e " ${GREEN}${BOLD}${mbox}${NC}\n"
|
((count=count+1))
|
||||||
|
(( count < start )) && continue
|
||||||
|
echo -e " ${GREY}${count}/$# ${GREEN}${BOLD}${mbox}${NC}\n"
|
||||||
"${FILTER_TEST}" -s -m "${ATTACH_MODE}" "${mbox}"
|
"${FILTER_TEST}" -s -m "${ATTACH_MODE}" "${mbox}"
|
||||||
echo -en "\n(q = quit / default = continue)? "
|
echo -en "\n(q = quit / [0-9]* = goto / default = continue)? "
|
||||||
read rep
|
read rep
|
||||||
case "${rep}" in
|
case "${rep}" in
|
||||||
"q" ) break;;
|
"q" ) break;;
|
||||||
|
[0-9]* )
|
||||||
|
start="${rep}"
|
||||||
|
(( count < start )) && continue
|
||||||
|
loop=true
|
||||||
|
break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user