summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-15 23:00:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-15 23:00:03 +0300
commit04febee98f22dd2af0c2e712542ba40083be680f (patch)
treed771f983f2e6c2c46dfb386f4041f29ef859e6ad /tools/ci/scripts/init.sh
parentda003f08612697b6cd1ad145fab7c5abe04fcca9 (diff)
downloadmanaplus-04febee98f22dd2af0c2e712542ba40083be680f.tar.gz
manaplus-04febee98f22dd2af0c2e712542ba40083be680f.tar.bz2
manaplus-04febee98f22dd2af0c2e712542ba40083be680f.tar.xz
manaplus-04febee98f22dd2af0c2e712542ba40083be680f.zip
Fix compiler version report in ci scripts.
Diffstat (limited to 'tools/ci/scripts/init.sh')
-rwxr-xr-xtools/ci/scripts/init.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 053f36b64..5db38aa02 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -7,11 +7,14 @@ export dir=$(pwd)
export ERRFILE=${dir}/logs/${LOGFILE}
cat /etc/os-release
-$CC --version
-$CXX --version
rm ${ERRFILE}
+function do_init {
+ $CC --version
+ $CXX --version
+}
+
function aptget_update {
apt-get update
if [ "$?" != 0 ]; then