Add an alias to return a site's Akamai Property name and version
This commit is contained in:
parent
667391bac5
commit
8ad0e38780
|
@ -1 +1,2 @@
|
||||||
alias akamai="docker run --rm -it -u \$(id -u) -v /dev/null:/etc/motd -v \${HOME}/.edgerc:/.edgerc -v \$(pwd):/workdir akamai/shell akamai"
|
alias akamai="docker run --rm -it -u \$(id -u) -v /dev/null:/etc/motd -v \${HOME}/.edgerc:/.edgerc -v \$(pwd):/workdir akamai/shell akamai"
|
||||||
|
function aka-prop() { OUTPUT=$(elcurl https://${1} --headers --debug-akamai-max | tr -d '\r' | grep PROP); PROP=$(echo "${OUTPUT}" | head -1 | cut -f3 -d=); VER=$(echo "${OUTPUT}" | tail -1 | cut -f3 -d=); echo "${PROP} v${VER}"; } && export -f aka-prop
|
||||||
|
|
Loading…
Reference in a new issue