SCRIPT NOT EXECUTING

HI All,
The below shown script whcih is executing wrongly
Actually i have three inputs from user
FILE NAME :INPUTS
CONFRIM FILE NAME :Y or N
CONFIRM PATH :confused: or .

by depending on the user input the script have to execute the find command in the root path or in the home path
but
while its not validating the first case when i gave Y(capital) and root(/)
its executing in the home path

While i gave with y(small) and (/) its finding the files in the root path
i think its not validating the second case (but while am giving with Y(capital) its further processing with firast case)

bold=`tput bold`
unbold=`tput sgr0`
tput cup  1  1 ;  echo 'FINDING THE FILES IN THE CURRENT PATH'
tput cup  5  1 :echo    'PLEASE ENTER YOUR STRING'
read a
c=$a
echo 'THE FILE NAME IS' $bold $c $unbold 'PLEASE COMFIRM with Y OR N'
read b
d=$b
echo 'PLEASE SPECIFY THE PATH' $bold '.(current path) or /(root path)' $unbold
read path
t=$path
echo $d 'your option'
echo $t 'your option'
if [ "$d" = "Y" ] || [ "$t" = "." ]
then
  find . -name "$c"
elif [ "$d" = "Y" ] || [ "$t" = "/" ]
then
  find / -name "$c" 2> /dev/null
else
  echo "OPTION INVALID"
fi

I dont understand what is happening
If am wrong in the above query pls correct me.

Thanks
Thelak Kumar A

How about something like this:

bold=`tput bold`
unbold=`tput sgr0`
while : ; do
    clear
    tput cup 1 1 ; echo 'FINDING THE FILES IN THE CURRENT PATH'
    tput cup 5 1 ; echo 'PLEASE ENTER YOUR STRING'
    read findstr
    echo 'THE FILE NAME IS' $bold $findstr $unbold 'PLEASE COMFIRM with Y OR N'
    read c
    case $c in
        Y|y) break;
    esac
done
echo 'PLEASE SPECIFY THE PATH' $bold '.(current path) or /(root path)' $unbold
read path
if [ "$path" = "." ]
then
    find . -name "$findstr"
elif [ "$path" = "/" ]
then
    find / -name "$findstr" 2> /dev/null
else
    echo "OPTION INVALID"
fi

THANKS ALOT ITS WORKING FINE

Good.