The following command in one line can check if a directory exists. You can check the return value ("yes or "no) then decide what to do.
$ if [ -d /home/gcp/deploy ] ; then echo "yes" ; else echo "no" ; fi