Skip to content

Commit 965acc0

Browse files
authored
Merge pull request #78 from semaphoreci/silent-phpbrew-install
Silent phpbrew install
2 parents 38df103 + 0ebb143 commit 965acc0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sem-install

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ HOST="http://packages.semaphoreci.com"
33

44
install::available() {
55
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
77
echo 1
88
else
99
echo 0
@@ -30,15 +30,15 @@ install::install_ruby() {
3030
install::install_php() {
3131
if [[ $(install::available) -eq 1 ]] ; then
3232
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
3434
phpbrew switch ${language_version}
3535
echo "date.timezone = UTC" >> "~/.phpbrew/php/php-${language_version}/etc/php.ini"
3636
phpbrew ext install imap -- --with-kerberos --with-imap-ssl
3737
phpbrew ext install gd -- --enable-gd-native-ttf --with-freetype-dir=/usr/lib/x86_64-linux-gnu
3838
else
3939
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
4242
mv php-${language_version} ~/.phpbrew/php/
4343
if [ ! -d "~/.phpbrew/build/php-{$language_version}" ]; then
4444
output=$(phpbrew -q download ${language_version})
@@ -62,7 +62,7 @@ install::err() {
6262
return 1
6363
}
6464

65-
sem-install() {
65+
sem-install() {
6666
if ! [[ $# -eq 2 ]]; then
6767
install::usage
6868
install::err "Unsupported number of arguments provided!"
@@ -75,10 +75,10 @@ sem-install() {
7575

7676
case $language in
7777
php)
78-
install::install_php
78+
install::install_php
7979
;;
8080
ruby)
81-
install::install_ruby
81+
install::install_ruby
8282
;;
8383
*)
8484
install:err "Installation of '${language}' is not yet supported"

0 commit comments

Comments
 (0)