Commit 5e83d7ed authored by ssrq's avatar ssrq

[type/__easy_rsa_pki] Fix update_vars.awk for systems without /dev/stdin

parent 4429a377
......@@ -4,11 +4,12 @@ BEGIN {
FS = "[ \t]"
# Store the should state read from stdin in should array
while ((getline should_line < "/dev/stdin")) {
while (("cat" | getline should_line)) {
k = substr(should_line, 1, index(should_line, " ") - 1)
v = substr(should_line, length(k) + 2)
should[k] = v
}
close("cat")
}
/^# DO YOUR EDITS BELOW THIS POINT/ { edits_allowed = 1 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment