mkdir will not clobber a directory if it already exists. It will just skip it and move on.
You can do this a couple of ways (bash).
Code:
mkdir -p /some/directory
#or this way
if [ ! -d /some/directory ];then mkdir -p /some/directory;fi
See
man mkdir for what -p does.