diff --git a/travis2bash.sh b/travis2bash.sh index 7e60425..47f6b89 100755 --- a/travis2bash.sh +++ b/travis2bash.sh @@ -158,7 +158,12 @@ if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then # strip quotes temp="${pv%\"}" pv="${temp#\"}" + # strip crap + pv=$(echo "$pv"|cut -d_ -f1) ppath=/usr/bin/python$pv + if [ -n "$TRAVIS_PYTHON" ] && [ "$TRAVIS_PYTHON" != "$pv" ]; then + echo "skipping python-$pv due to TRAVIS_PYTHON=$TRAVIS_PYTHON" + fi #if [ ! -e "$ppath" ]; then sudo apt -y install "python$pv" "python${pv}-dev" #fi