Skip to content

Commit

Permalink
devtools/credit: ! not ^ to invert the match set in sh.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Jul 31, 2023
1 parent 6ea6b03 commit 5ba4713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/credit
Original file line number Diff line number Diff line change
Expand Up @@ -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#*|}
Expand Down

0 comments on commit 5ba4713

Please sign in to comment.