Commit d368cb84 authored by Paul Philipp Gadow's avatar Paul Philipp Gadow
Browse files

add analysis base check for zsh in setup.sh

parent f9f55af9
......@@ -8,6 +8,11 @@ echo "=== running asetup ==="
# fancy pants check to get version number from ci image
DOCKER_ANALYSIS_BASE_VERSION=$(
grep 'analysisbase' ${BASH_SOURCE[0]%/*}/.gitlab-ci.yml | sed -r 's/.*:([^-]*).*/\1/')
# let zsh people also use fancy pants
if [ -z "${DOCKER_ANALYSIS_BASE_VERSION}" ]; then
DOCKER_ANALYSIS_BASE_VERSION=$(
grep 'analysisbase' $( dirname ${(%):-%x} )/.gitlab-ci.yml | sed -r 's/.*:([^-]*).*/\1/')
fi
# make sure our pants weren't _too_ fancy
if [[ ! $DOCKER_ANALYSIS_BASE_VERSION =~ [0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "couldn't parse CI file for base image, setting up latest"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment