Skip to content

Instantly share code, notes, and snippets.

View thorhs's full-sized avatar

Þórhallur Sverrisson thorhs

View GitHub Profile
@thorhs
thorhs / nxfetch.sh
Last active August 29, 2015 13:57
Improved version of nxfetch.sh which includes SHA1 checking of the downloaded artifact, quiet/verbose options, output to file and a few more.
#!/bin/bash -eu
#shopt -o -s xtrace
# Define Nexus Configuration
NEXUS_BASE=http://nexus.example.com:8001/nexus
REST_PATH=/service/local
ART_REDIR=/artifact/maven/redirect
META_PATH=/artifact/maven/resolve