back to no-break in gophermap creation once again

This commit is contained in:
James Tomasino 2018-03-06 23:15:31 -05:00
parent 39372f1d0c
commit 6a00579db2
1 changed files with 4 additions and 8 deletions

12
burrow
View File

@ -294,22 +294,18 @@ function make_post {
if $use_gophermap; then
if $use_date; then
# if using gophermap and date
echo -e "1$(date +%Y-%m-%d) - $title\t${post_file_path}\t"\
"${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
echo -e "1$(date +%Y-%m-%d) - $title\t${post_file_path}\t${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
else
# if using gophermap but not date
echo -e "1$title\t${post_file_path}\t"\
"${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
echo -e "1$title\t${post_file_path}\t${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
fi
else
if $use_date; then
# if not using gophermap but using date
echo -e "0$(date +%Y-%m-%d) - $title\t${post_file_path}\t"\
"${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
echo -e "0$(date +%Y-%m-%d) - $title\t${post_file_path}\t${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
else
# if not using gophermap or date
echo -e "0$title\t${post_file_path}\t"\
"${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
echo -e "0$title\t${post_file_path}\t${config_gopher_server}\t${config_gopher_port}" > "$temp_gophermap"
fi
fi