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=""
TOTAL=0
while read LINE; do
COUNT=${LINE%% [^ 0123456789]*}
TOTAL=$(($TOTAL + $COUNT))
COUNT=${LINE%% [! 0123456789]*}
TOTAL=$((TOTAL + COUNT))
LINE=${LINE#*[1234567890] }
NAME=${LINE%%|*}
EMAIL=${LINE#*|}