Skip to content

Instantly share code, notes, and snippets.

@tarlepp

tarlepp/foo-0.sh Secret

Last active Feb 3, 2021
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