forked from team/bashblog
Bug Fix
if `~/public_html/blog` doesn't exist then the script never moves to it and creates all html/blog files in current pwd
This commit is contained in:
parent
b92931519a
commit
d62085770a
2
bb.sh
2
bb.sh
|
@ -1094,7 +1094,7 @@ date_version_detect() {
|
||||||
do_main() {
|
do_main() {
|
||||||
# make sure we're in the right directory
|
# make sure we're in the right directory
|
||||||
[ $(pwd) != $HOME/public_html/blog ] &&
|
[ $(pwd) != $HOME/public_html/blog ] &&
|
||||||
echo "you're not in your blog directory. moving you there now" && cd $HOME/public_html/blog
|
echo "you're not in your blog directory. moving you there now" && mkdir -p $HOME/public_html/blog && cd $HOME/public_html/blog
|
||||||
|
|
||||||
# Detect if using BSD date or GNU date
|
# Detect if using BSD date or GNU date
|
||||||
date_version_detect
|
date_version_detect
|
||||||
|
|
Loading…
Reference in New Issue