Skip to content

Commit

Permalink
chore: fix some typos (prometheus#2974)
Browse files Browse the repository at this point in the history
Signed-off-by: occupyhabit <wangmengjiao@outlook.com>
Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
  • Loading branch information
occupyhabit authored and v-zhuravlev committed Nov 1, 2024
1 parent 2326665 commit 7c970bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ttar
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,16 @@ function extract {
local eof_without_newline
if [ "$size" -gt 0 ]; then
if [[ "$line" =~ [^\\]EOF ]]; then
# An EOF not preceeded by a backslash indicates that the line
# An EOF not preceded by a backslash indicates that the line
# does not end with a newline
eof_without_newline=1
else
eof_without_newline=0
fi
# Replace NULLBYTE with null byte if at beginning of line
# Replace NULLBYTE with null byte unless preceeded by backslash
# Replace NULLBYTE with null byte unless preceded by backslash
# Remove one backslash in front of NULLBYTE (if any)
# Remove EOF unless preceeded by backslash
# Remove EOF unless preceded by backslash
# Remove one backslash in front of EOF
if [ $USE_PYTHON -eq 1 ]; then
echo -n "$line" | python -c "$PYTHON_EXTRACT_FILTER" >> "$path"
Expand Down

0 comments on commit 7c970bf

Please sign in to comment.