just move to blog dir

This commit is contained in:
Ben Harris 2018-07-22 16:49:28 -04:00
parent d631d005fd
commit ef0f2e6dda
Signed by: ben
GPG Key ID: 4E0AF802FFF7960C
1 changed files with 2 additions and 1 deletions

3
bb.sh
View File

@ -1062,7 +1062,8 @@ date_version_detect() {
# $2 file name of a draft to continue editing (optional)
do_main() {
# make sure we're in the right directory
[ $(pwd) != $HOME/public_html/blog ] && echo "you're not in your blog directory." && exit
[ $(pwd) != $HOME/public_html/blog ] &&
echo "you're not in your blog directory. moving you there now" && cd $HOME/public_html/blog
# Detect if using BSD date or GNU date
date_version_detect