mkdir -p never removes/overwrite existing directory, removing if check as sometimes you need to manually run some tools and you are also maintaining same dir structure that ReconPi follows, then after the manual run, if you run ReconPi, it will not create other directories which you missed during manual enumeration and give you errors.
To avoid this condition, removing if check so that no matter what whenever ReconPi run on a particular domain, it tries to create dir structure and -p make sure that it does not overwrite any existing folder.
mkdir -p never removes/overwrite existing directory, removing if check as sometimes you need to manually run some tools and you are also maintaining same dir structure that ReconPi follows, then after the manual run, if you run ReconPi, it will not create other directories which you missed during manual enumeration and give you errors.
To avoid this condition, removing if check so that no matter what whenever ReconPi run on a particular domain, it tries to create dir structure and -p make sure that it does not overwrite any existing folder.