главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bb.sh b/bb.sh
index e845cf7..c8f62d6 100755
--- a/bb.sh
+++ b/bb.sh
@@ -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