4 deleted 50 characters in body
source | link
#!/bin/bash
func()
{
    echo -n "Enter yes or no : "

    read confirmation
}   
confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
    echo "I am gladd you said $confirmation"
else
    func
fi
exit 0

Hope this can help

#!/bin/bash
func()
{
    echo -n "Enter yes or no : "

    read confirmation
}   
confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
    echo "I am gladd you said $confirmation"
else
    func
fi
exit 0

Hope this can help

#!/bin/bash
func()
{
    echo -n "Enter yes or no : "

    read confirmation
}   
confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
    echo "I am gladd you said $confirmation"
else
    func
fi
exit 0
3 fixed indentation
source | link
         #!/bin/bash
    func()
{
        echo -n "Enter yes or no : "

        read confirmation
     }   
        confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
        if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
        echo "I am gladd you said $confirmation"
        else
             func
        fi
        exit 0

Hope this can help

         #!/bin/bash
    func()
{
        echo -n "Enter yes or no : "

        read confirmation
     }   
        confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
        if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
        echo "I am gladd you said $confirmation"
        else
             func
        fi
        exit 0

Hope this can help

#!/bin/bash
func()
{
    echo -n "Enter yes or no : "

    read confirmation
}   
confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
    echo "I am gladd you said $confirmation"
else
    func
fi
exit 0

Hope this can help

2 added 68 characters in body
source | link
         #!/bin/bash
    func()
{
        echo -n "Enter yes or no : "

        read confirmation
     }   
        confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
        if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
        echo "I am gladd you said $confirmation"
        else
             func
        fi
        exit 0

Hope this can help

     #!/bin/bash
func()
    echo -n "Enter yes or no : "

    read confirmation

    confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
    if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
    echo "I am gladd you said $confirmation"
    else
         func
    fi
    exit 0

Hope this can help

         #!/bin/bash
    func()
{
        echo -n "Enter yes or no : "

        read confirmation
     }   
        confirmation="$(echo ${confirmation} | tr 'A-Z' 'a-z')"
        if [ "$confirmation" == yes ] || [ "$confirmation" == no ]; then
        echo "I am gladd you said $confirmation"
        else
             func
        fi
        exit 0

Hope this can help

1
source | link