Last active
December 30, 2015 02:49
-
-
Save kentatogashi/7765145 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
| #!/bin/sh | |
| set -ex | |
| which phpunit > /dev/null 2>&1 | |
| if $? != 0 ; then | |
| echo "Start Installing..." | |
| pear update-channels | |
| pear upgrade -a PEAR | |
| pear upgrade-all | |
| pear config-set auto_discover 1 | |
| pear install pear.phpunit.de/PHPUnit | |
| else | |
| exit 0 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
冒頭に set -ex を書くと現在動いている行が分かって、何かバグった時に便利