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 --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