From ef0f2e6dda58d80631602119c293a86961becf9a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 22 Jul 2018 16:49:28 -0400 Subject: [PATCH] just move to blog dir --- bb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index cf7cf9b..dbb7bbe 100755 --- a/bb.sh +++ b/bb.sh @@ -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