diff --git a/alpine-pkg-tag.sh b/alpine-pkg-tag.sh index 468b0d0..c45655c 100644 --- a/alpine-pkg-tag.sh +++ b/alpine-pkg-tag.sh @@ -2,5 +2,5 @@ PKG_NAME=$1 apk add --no-cache $PKG_NAME -VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\)\s*=.*/\1/") +VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\)\s*=.*/\1/" | awk '{$1=$1};1') echo -n "$VER,latest" > .tags