Little bash script

A little bash script to help me remember how they work

#!/bin/bash

#functions
fruit()
{
        echo "fruit found"
}

#main
if \[ $# != 1 \]
then
        echo "No argument provided"
        exit 1
fi

if \[\[ $1 == 'pear' \]\]; then
        fruit
fi