Last active
May 16, 2018 11:51
-
-
Save PurpleBooth/2dca748708cbf4862121eb66c1f325a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env bash | |
| composer validate | |
| ### Previous version | |
| # php -r "\$lock = json_decode(file_get_contents('composer.lock'))->hash; \$json = md5(file_get_contents('composer.json')); if (\$lock !== \$json) { echo \"Lock file out of date\\n\"; exit(1); } echo \"Lock file up to date\\n\"; exit(0);" | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So today I learned about composer validate! Much tidier like this, rather than that horrible long string.