mirror of https://git.envs.net/envs/burrow.git
avoiding word splitting
This commit is contained in:
parent
56f5c3f3f6
commit
b880efa992
2
burrow
2
burrow
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue