главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorCarlos Fenollosa <carlos.fenollosa@gmail.com>2013-03-07 19:30:59 +0100
committerCarlos Fenollosa <carlos.fenollosa@gmail.com>2013-03-07 19:30:59 +0100
commit0878f6ccc3f0b0b723b35d897eced194832d937f (patch)
treea9801865b33b76adceff5418024bfe5e1076d7f9 /bb.sh
parent1c56eba533d5724ce01baf75f862da6ac9648455 (diff)
Some bugfixes
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index c8f62d6..eff3e77 100755
--- a/bb.sh
+++ b/bb.sh
@@ -60,6 +60,7 @@
#
#########################################################################################
#
+# 1.5.1 Misc bugfixes and parameter checks
# 1.5 Durad Radojicic refactored some code and added flexibility and i18n
# 1.4.2 Now issues are handled at Github
# 1.4.1 Some code refactoring
@@ -88,7 +89,7 @@ global_variables() {
# If you want to fork the project please contact me first, I wouldn't mind opening a git
# or some shared code base and collaborate with other people.
global_software_name="BashBlog"
- global_software_version="1.5"
+ global_software_version="1.5.1"
# Blog title
global_title="My fancy blog"
@@ -606,6 +607,12 @@ reset() {
do_main() {
global_variables
+ # Check for $EDITOR
+ if [[ -z "$EDITOR" ]]; then
+ echo "Please set your \$EDITOR environment variable"
+ exit
+ fi
+
# Check for validity of argument
if [ "$1" != "reset" ] && [ "$1" != "post" ] && [ "$1" != "rebuild" ] && [ "$1" != "list" ] && [ "$1" != "edit" ]; then
usage; exit;