gluon-core: use awk instead of grep+cut

This commit is contained in:
Matthias Schiffer 2014-02-23 20:23:47 +01:00
parent 5f8e34fc2f
commit b953d5026f

View File

@ -16,7 +16,7 @@ mkdir -p "$VERSION_DIR"
version_of() {
opkg status "gluon-$1" | grep '^Version: ' | cut -d' ' -f 2
opkg status "gluon-$1" | awk '/^Version: / { print $2 }'
}
oldversion_of() {