Update 'alpine-pkg-tag.sh'
This commit is contained in:
parent
c0ca3e01d2
commit
4b5dde0fb1
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PKG_NAME=$1
|
PKG_NAME=$1
|
||||||
|
|
||||||
apk add --no-cache $PKG_NAME
|
apk add $PKG_NAME
|
||||||
VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\)\s*=.*/\1/" | awk '{$1=$1};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
|
echo -n "$VER,latest" > .tags
|
||||||
|
Loading…
Reference in New Issue
Block a user