From b953d5026f41a91f82ec9b63fbb8d94d45ee1139 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 23 Feb 2014 20:23:47 +0100 Subject: [PATCH] gluon-core: use awk instead of grep+cut --- package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade b/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade index 3d6df426..f075e53b 100755 --- a/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade +++ b/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade @@ -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() {