jjb: Build & deploy lttng-www using jammy rootnode
[lttng-ci.git] / scripts / lttng-ivc / build.sh
index 08f6b9b8817a11d39074ee86091a31e475994f05..c008944bf11a5985fc2d67088d812a1eb6473ca0 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -xu
+#!/bin/bash
 #
 # Copyright (C) 2017 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set -xu
+
 PYTHON3="python3"
-P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
+P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 
 # Tox does not support long path venv for whatever reason.
 PYENV_HOME=$(mktemp -d)
This page took 0.028959 seconds and 4 git commands to generate.