@@ -3,7 +3,7 @@ HOST="http://packages.semaphoreci.com"
3
3
4
4
install::available () {
5
5
response=$( curl --write-out %{http_code} --head --silent --output /dev/null $HOST /${language} /${language_version} .tar.gz)
6
- if [[ $response -ne 200 ]]; then
6
+ if [[ $response -ne 200 ]]; then
7
7
echo 1
8
8
else
9
9
echo 0
@@ -30,15 +30,15 @@ install::install_ruby() {
30
30
install::install_php () {
31
31
if [[ $( install::available) -eq 1 ]] ; then
32
32
phpbrew known -u
33
- phpbrew install -j 4 ${language_version} +default +dbs +openssl -- --with-curl=/usr/local
33
+ phpbrew -q install -j 4 ${language_version} +default +dbs +openssl -- --with-curl=/usr/local
34
34
phpbrew switch ${language_version}
35
35
echo " date.timezone = UTC" >> " ~/.phpbrew/php/php-${language_version} /etc/php.ini"
36
36
phpbrew ext install imap -- --with-kerberos --with-imap-ssl
37
37
phpbrew ext install gd -- --enable-gd-native-ttf --with-freetype-dir=/usr/lib/x86_64-linux-gnu
38
38
else
39
39
install::download
40
- tar -zxf ${language_version} .tar.gz
41
- rm -rf ${language_version} .tar.gz
40
+ tar -zxf ${language_version} .tar.gz
41
+ rm -rf ${language_version} .tar.gz
42
42
mv php-${language_version} ~ /.phpbrew/php/
43
43
if [ ! -d " ~/.phpbrew/build/php-{$language_version }" ]; then
44
44
output=$( phpbrew -q download ${language_version} )
@@ -62,7 +62,7 @@ install::err() {
62
62
return 1
63
63
}
64
64
65
- sem-install () {
65
+ sem-install () {
66
66
if ! [[ $# -eq 2 ]]; then
67
67
install::usage
68
68
install::err " Unsupported number of arguments provided!"
@@ -75,10 +75,10 @@ sem-install() {
75
75
76
76
case $language in
77
77
php)
78
- install::install_php
78
+ install::install_php
79
79
;;
80
80
ruby)
81
- install::install_ruby
81
+ install::install_ruby
82
82
;;
83
83
* )
84
84
install:err " Installation of '${language} ' is not yet supported"
0 commit comments