From d180fdd36b29e02c378390d916e1f9b5bbcb269f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jun 2016 22:31:16 +0300 Subject: Skip packages install if run not in ci server. --- tools/ci/scripts/init.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools') diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index b64fa7f..8be9206 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -18,6 +18,11 @@ function do_init { } function update_repos { + if [ "$CI_SERVER" == "" ]; + then + return + fi + export DATA=$(cat /etc/resolv.conf|grep "nameserver 1.10.100.101") echo "${DATA}" if [ "$DATA" != "" ]; @@ -28,6 +33,10 @@ function update_repos { } function aptget_update { + if [ "$CI_SERVER" == "" ]; + then + return + fi echo "apt-get update" apt-get update if [ "$?" != 0 ]; then @@ -53,6 +62,10 @@ function aptget_update { } function aptget_install { + if [ "$CI_SERVER" == "" ]; + then + return + fi echo "apt-get -y -qq install $*" apt-get -y -qq install $* if [ "$?" != 0 ]; then -- cgit v1.2.3-70-g09d2