Don't ask for preview - just show URL for preview
This commit is contained in:
parent
b7cd230ae9
commit
840d24c4ac
1 changed files with 3 additions and 8 deletions
9
bb.sh
9
bb.sh
|
@ -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
|
||||
[ "$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
|
||||
|
|
Loading…
Reference in a new issue