Don't ask for preview - just show URL for preview
This commit is contained in:
parent
b7cd230ae9
commit
840d24c4ac
9
bb.sh
9
bb.sh
|
@ -635,15 +635,10 @@ EOF
|
||||||
else
|
else
|
||||||
parse_file "$TMPFILE" # this command sets $filename as the html processed file
|
parse_file "$TMPFILE" # this command sets $filename as the html processed file
|
||||||
fi
|
fi
|
||||||
chmod 600 "$filename"
|
|
||||||
|
|
||||||
echo -n "Preview? (Y/n) "
|
|
||||||
read p
|
|
||||||
if [[ "$p" != "n" ]] && [[ "$p" != "N" ]]; then
|
|
||||||
chmod 644 "$filename"
|
chmod 644 "$filename"
|
||||||
[ $preview_url ] || preview_url="$global_url"
|
[ "$preview_url" ] || preview_url="$global_url"
|
||||||
echo "Open $preview_url/$filename in your browser"
|
echo "To preview the entry, open $preview_url/$filename in your browser"
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "[P]ost this entry, [E]dit again, [D]raft for later? (p/E/d) "
|
echo -n "[P]ost this entry, [E]dit again, [D]raft for later? (p/E/d) "
|
||||||
read post_status
|
read post_status
|
||||||
|
|
Loading…
Reference in New Issue
Block a user