52a7c23bb1
which apparently does not work *at all* when the user/pass combo is wrong or has characters that explode or whatever.
20 lines
342 B
Bash
Executable File
20 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
if [ ! -d php-amqplib/.git ] ; then
|
|
git clone git://github.com/videlalvaro/php-amqplib.git
|
|
else
|
|
pushd php-amqplib
|
|
git fetch
|
|
get reset --hard origin/master
|
|
popd
|
|
fi
|
|
|
|
pushd php-amqplib
|
|
if [ ! -f composer.phar ] ; then
|
|
curl -s https://getcomposer.org/installer | php
|
|
fi
|
|
php composer.phar install
|
|
popd
|