Created
July 9, 2019 23:43
-
-
Save jhoblitt/dd3d84ecc0a334224734a413cd0c900d to your computer and use it in GitHub Desktop.
download eups manifest file and strip it down to just the package name and git sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strip_manifest() { | |
local manifest_id=${1?manifest id is required} | |
local base_url='https://raw.githubusercontent.com/lsst/versiondb/master/manifests' | |
curl -sSL "${base_url}/${manifest_id}.txt" \ | |
| awk '{ print $1 " " $2 }' \ | |
| sort > "${manifest_id}-sha1.txt" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment