From 77370e8472466ca85b93e644e6b95dca88d7924d Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 20 Jun 2022 00:56:45 +0000 Subject: [PATCH] Update 'alpine-pkg-tag.sh' --- alpine-pkg-tag.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alpine-pkg-tag.sh b/alpine-pkg-tag.sh index 43f35fc..468b0d0 100644 --- a/alpine-pkg-tag.sh +++ b/alpine-pkg-tag.sh @@ -2,6 +2,5 @@ PKG_NAME=$1 apk add --no-cache $PKG_NAME -VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\).*=.*/\1/") -echo "$PKG_NAME version $VER" +VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\)\s*=.*/\1/") echo -n "$VER,latest" > .tags