diff options
author | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2013-03-07 18:54:33 +0100 |
---|---|---|
committer | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2013-03-07 18:54:33 +0100 |
commit | 1c56eba533d5724ce01baf75f862da6ac9648455 (patch) | |
tree | 0e63c8d211b34bc5d4279e489bc54d05bfbfa0b4 /bb.sh | |
parent | 341894348f854416d851c75e2159b28c264aa2c4 (diff) |
Fixed a bug with edit
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -616,6 +616,13 @@ do_main() { exit fi + if [[ "$1" == "edit" ]]; then + if [[ $# -lt 2 ]] || [[ ! -f "$2" ]]; then + echo "Please enter a valid html file to edit" + exit + fi + fi + # Test for existing html files ls *.html &> /dev/null if [ $? -ne 0 ] && [ "$1" == "rebuild" ]; then |