devtools/credit: ! not ^ to invert the match set in sh.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-07-28 14:32:13 +09:30
parent 6ea6b0397e
commit 5ba4713b21

View File

@@ -25,8 +25,8 @@ NAMER=""
BACKUP_NAMER="" BACKUP_NAMER=""
TOTAL=0 TOTAL=0
while read LINE; do while read LINE; do
COUNT=${LINE%% [^ 0123456789]*} COUNT=${LINE%% [! 0123456789]*}
TOTAL=$(($TOTAL + $COUNT)) TOTAL=$((TOTAL + COUNT))
LINE=${LINE#*[1234567890] } LINE=${LINE#*[1234567890] }
NAME=${LINE%%|*} NAME=${LINE%%|*}
EMAIL=${LINE#*|} EMAIL=${LINE#*|}