xref: /openbmc/phosphor-misc/http-redirect/add-urls.awk (revision 272b453c80faeed47c1d04f05f216a84c791c418)
1# Add this fragment to populate the https_resources array when urlfile is set
2# To use: awk -f $thisfile -v urlfile=
3# url contains  lookup redirect
4BEGIN {
5if (urlfile)
6	while ((getline < urlfile) > 0)
7		https_resources[$1] = $2
8}
9