I need to do validation on git clone [bitbucket Git URL]
using shell script.
Running the above command gives fatal: destination path 'sweta-test-parameter' already exists and is not an empty directory.
I need to write an if-else condition where it checks if the clone command gives a fatal error don't proceed or else do git add remote origin
What regex should I use to do that validation?
Can someone please help?
Appreciate all your help! Thanks!