From 5ba4713b213cdcd52ee5a3d9fd21c4e82e60fdc1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 28 Jul 2023 14:32:13 +0930 Subject: [PATCH] devtools/credit: ! not ^ to invert the match set in sh. Signed-off-by: Rusty Russell --- devtools/credit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/credit b/devtools/credit index 710bc0a4e..cdcae728e 100755 --- a/devtools/credit +++ b/devtools/credit @@ -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#*|}