indentation

This commit is contained in:
2024-12-06 02:46:03 +08:00
parent 3282ef2a35
commit 9b763d5b37

View File

@ -41,18 +41,17 @@ INPUT_RULES=$(cat input-rules)
if [[ ${KV_ARRAY[$i]} -eq $KEY ]] if [[ ${KV_ARRAY[$i]} -eq $KEY ]]
then then
KEY=${KV_ARRAY[$i+1]} KEY=${KV_ARRAY[$i+1]}
BREAK=1 BREAK=1
break break
fi fi
done done
if [[ $BREAK -eq 1 ]] ; then continue ; else break ; fi if [[ $BREAK -eq 1 ]] ; then continue ; else break ; fi
done done
printf "%s\n" "$KEY" printf "%s\n" "$KEY"
CACHED_LINE=$( printf "%s" "$CACHED_LINE" | grep -v "$KEY" ) CACHED_LINE=$( printf "%s" "$CACHED_LINE" | grep -v "$KEY" )
done | tac | paste -s -d' ' done | tac | paste -s -d' '
done done
} | } |
tee final-output |
awk ' awk '
BEGIN{ total = 0 } BEGIN{ total = 0 }
{ {