Skip to content

Instantly share code, notes, and snippets.

@kentatogashi
Last active December 30, 2015 02:49
Show Gist options
  • Select an option

  • Save kentatogashi/7765145 to your computer and use it in GitHub Desktop.

Select an option

Save kentatogashi/7765145 to your computer and use it in GitHub Desktop.
#!/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
@oooooooo
Copy link

oooooooo commented Dec 3, 2013

冒頭に set -ex を書くと現在動いている行が分かって、何かバグった時に便利

@kentatogashi
Copy link
Author

追記しました。
ありがとうございます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment