1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
cops_ynh/sources/composer-dl.sh
2016-12-21 17:48:44 +00:00

18 lines
508 B
Bash
Executable file

#!/bin/sh
# https://getcomposer.org/
if [ -x `which wget` ]; then
echo "wget found."
wget -q https://getcomposer.org/installer -O - | php
elif [ -x `which curl` ]; then
echo "curl found."
curl -sS https://getcomposer.org/installer | php
else
echo "Please install wget or curl to download Composer."
fi
if [ -f "./composer.phar" ]; then
chmod a+x ./composer.phar
# Install support for bower and NPM packages
./composer.phar global require "fxp/composer-asset-plugin:~1.1"
fi