INNER CODE UNIT · Shell

found

IAmStoxe/wirehole · scripts/migrate-from-v1.sh:89

            found = substr($0, length(key) + 2)
        }
        END { print found }
    ' .env
}

# Write a value into a specified .env file.
new_set() {
    local file="$1"
    local key="$2"
    local value="$3"

    VALUE="$value" awk -v key="$key" '
        BEGIN { FS = "=" }
        $1 == key && substr($0, 1, 1) != "#" {
            print key "=" ENVIRON["VALUE"]
            found = 1
            next

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…