mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
fix counter in checkmd5
This commit is contained in:
parent
5ae9a4a9a1
commit
495001917e
1 changed files with 2 additions and 2 deletions
|
@ -914,8 +914,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
if $MD5COUNTER && echo $1|egrep -q "\.t.z$";then
|
||||
CHECKING=$(basename $1)
|
||||
qq=$(echo $SHOWLIST|wc -w)
|
||||
cc=$(echo "$SHOWLIST"|grep -n $CHECKING|cut -f1 -d:)
|
||||
echo -n "[$cc/$qq] " >&2
|
||||
cc=$[$(echo $SHOWLIST|sed 's/ /\n/g'|grep -n $CHECKING|cut -f1 -d:)+1]
|
||||
[ $cc -le $qq ]&&echo -n "[$cc/$qq] " >&2
|
||||
fi
|
||||
if echo $1|egrep -q "/SLACKPKGPLUS_(file|dir|http|ftp|https)[0-9]";then
|
||||
echo 1
|
||||
|
|
Loading…
Reference in a new issue