Skip to content
Snippets Groups Projects
Commit f3dd36b8 authored by Fabian Blaese's avatar Fabian Blaese Committed by Tim Niemeyer
Browse files

configurehood: Allow for spaces after identifier


Some JSON beautifiers put spaces between identifier and value.
This is necessary to tolerate that.

Signed-off-by: default avatarFabian Bläse <fabian@blaese.de>
Reviewed-by: default avatarTim Niemeyer <tim@tn-x.org>
parent 1eaa0075
No related branches found
No related tags found
No related merge requests found
...@@ -144,8 +144,8 @@ if [ -s "$hoodfile" ]; then ...@@ -144,8 +144,8 @@ if [ -s "$hoodfile" ]; then
json_get_var mesh_type5 mesh_type5 json_get_var mesh_type5 mesh_type5
fi fi
catnew="$(cat "$hoodfile" | sed 's/"timestamp":"[0-9]*"/"timestamp":0/')" catnew="$(cat "$hoodfile" | sed 's/"timestamp”: *"[0-9]*"/"timestamp":0/')"
catold="$(cat "$hoodfilecopy" 2>/dev/null | sed 's/"timestamp":"[0-9]*"/"timestamp":0/')" catold="$(cat "$hoodfilecopy" 2>/dev/null | sed 's/"timestamp”: *"[0-9]*"/"timestamp":0/')"
sumnew=$(echo "$catnew" | sha256sum | cut -f1 -d " ") sumnew=$(echo "$catnew" | sha256sum | cut -f1 -d " ")
sumold=$(echo "$catold" | sha256sum | cut -f1 -d " ") sumold=$(echo "$catold" | sha256sum | cut -f1 -d " ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment