I am using the below curl command to create a directory if not present and move the downloaded jar file to that directory named jarDirectory:
curl -o “${destinationpath}/jarDirectory” http://localhost:8080/artifactory/download/${build}
But the above command is creating an empty file named jarDirectory and not saving the downloaded jar from the url
I tried multiple variations by removing the quotes present around destination path, putting quotes around source path, but it doesn’t seem to work.
Could you please let me know whether the above command is the right way?