avoiding word splitting

This commit is contained in:
James Tomasino 2018-04-09 21:57:06 -04:00
parent 56f5c3f3f6
commit b880efa992
1 changed files with 1 additions and 1 deletions

2
burrow
View File

@ -459,7 +459,7 @@ function make_rss {
printf " <link>gopher://%s/0%s%s/%s</link>\n" "$config_gopher_server" "$config_gopher_root" "$config_dir_phlog" "$filename"
printf " <pubdate>%s</pubdate>\n" "$(date -R --date="${date}")"
printf " <description><![CDATA[<pre>\n"
if grep -q "gophermap$" <<< $filename
if grep -q "gophermap$" <<< "$filename"
then
awk -F"\t" '/^[2-9\+GITs].*\t/ {print $0; next} /^h.*\t/ { l=substr($1, 2, length($1)); print l "\n " substr($2, 5, length($2)); next } /^[0-1].*\t/ { l=substr($1, 2, length($1)); t=substr($1,1,1); print l "\n gopher://" $3 "/" t $2; next } {sub(/^i/, "", $1);print $1}' "$f"
else