How to download an artifact from Nexus repo via curl using REST API

So I can't take credit for the curl solution. The following script was a result of various stackoverflow searches to see why it wasn't working. In the end the curl command had to look like below and work in 2 steps to download the artifact I needed.

The below script assumes the following:

Endless select menu in bash script


There are many sources on the web for creating menus in bash scripts. After prodding through the many examples, I am documenting the approach that I felt was generic enough for all my intents and pusposes. Just as a reference even to me, in case I need to do it again.

Subscribe to RSS - bash