Skip to content

Instantly share code, notes, and snippets.

@tarlepp

tarlepp/foo-0.sh Secret

Last active February 3, 2021 21:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | \
grep -E "browser_download_url(.+)linux_amd64" | \
cut -d : -f 2,3 | \
sed 's/"//g' | \
xargs -I{} wget -O local-php-security-checker {} \
&& mv local-php-security-checker /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest \
| awk '/browser_download_url(.+)linux_amd64/{ printf $2 "\n" }' \
| xargs -I{} wget {} -O /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
curl --silent https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest \
| awk '/browser_download_url(.+)linux_amd64/{ printf $2 "\n" }' \
| xargs -I{} curl {} --location --output /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment