Fixed a bug with edit
This commit is contained in:
parent
341894348f
commit
1c56eba533
1 changed files with 7 additions and 0 deletions
7
bb.sh
7
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
|
||||
|
|
Loading…
Add table
Reference in a new issue