Don't ask for preview - just show URL for preview

This commit is contained in:
Alexey Shpakovsky 2014-06-26 03:53:09 +02:00 committed by Aleksei Shpakovskii
parent b7cd230ae9
commit 840d24c4ac

11
bb.sh
View File

@ -635,15 +635,10 @@ EOF
else
parse_file "$TMPFILE" # this command sets $filename as the html processed file
fi
chmod 600 "$filename"
echo -n "Preview? (Y/n) "
read p
if [[ "$p" != "n" ]] && [[ "$p" != "N" ]]; then
chmod 644 "$filename"
[ $preview_url ] || preview_url="$global_url"
echo "Open $preview_url/$filename in your browser"
fi
chmod 644 "$filename"
[ "$preview_url" ] || preview_url="$global_url"
echo "To preview the entry, open $preview_url/$filename in your browser"
echo -n "[P]ost this entry, [E]dit again, [D]raft for later? (p/E/d) "
read post_status