clear
echo "WARNING: This will overwrite any existing HTML Pages and Data"
echo "Type YES to continue, any other input will abort"
read verify
if [ "$verify" == "YES" ]
then
echo "OK here we go"

# Set the accidentrun variable so that the html generation knows it has not been
# accidentally called from the command line
# Can't see why it would be, but better to be safe than sorry

ACCIDENTRUN="N"

# Variable is set, so lets create the necessary directory tree
mkdir html
mkdir data

# And call the script
# It will blank anything that is already in the tree, hence the accidentrun variable
source ./bins/generatehtml
echo "All done"
else
echo "OK Aborting"
fi
echo "Returning to main menu"
echo ""
echo ""

./bikemaintain