From 1930dda2af295671e0af1f69ff613d9e41ae522c Mon Sep 17 00:00:00 2001 From: Marvin Winkler Date: Mon, 10 Jul 2023 14:00:09 +0200 Subject: [PATCH] fauxo tag fix --- get-version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-version.sh b/get-version.sh index e3458c8..c2072a4 100755 --- a/get-version.sh +++ b/get-version.sh @@ -1,7 +1,7 @@ #!/bin/bash export IMG=$(docker build -q --pull --no-cache -t 'get-version' .) -export FAUXMO_VERSION=$(docker run --rm -t get-version pip list | grep fauxmo | tr ' ' '\n' | grep '[0-9]\.[0-9]') +export FAUXMO_VERSION=$(docker run --rm -t get-version pip list | grep fauxmo | tr ' ' '\n' | grep '[0-9]\.[0-9]' | tr -d '\r') export ALPINE_VERSION=$(docker run --rm -t get-version cat /etc/alpine-release | tail -n1 | tr -d '\r') [ -z "$ALPINE_VERSION" ] && exit 1 @@ -13,4 +13,4 @@ if [ "$IMAGE_EXISTS" -eq 0 ]; then echo "$1""latest" else echo "$IMGTAG" -fi \ No newline at end of file +fi