Skip to content

Commit

Permalink
fauxo tag fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Jul 10, 2023
1 parent 259da9c commit 1930dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-version.sh
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -13,4 +13,4 @@ if [ "$IMAGE_EXISTS" -eq 0 ]; then
echo "$1""latest"
else
echo "$IMGTAG"
fi
fi

0 comments on commit 1930dda

Please sign in to comment.