From e154d497346078ed2a7696124b274a87997b2b0b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 29 Jan 2012 19:54:25 -0500 Subject: Fix platform regular expression. --- diff --git a/src/opkbuild b/src/opkbuild index 7c3c953..d41d5bd 100644 --- a/src/opkbuild +++ b/src/opkbuild @@ -87,8 +87,7 @@ if [ ! -f config ]; then platform='' # If a target platform was not specified ... elif [ -z "${platform}" ]; then - platform=$(opkg print-architecture | \ - grep '^arch [^-] [0-9][0-9]*') + platform=$(opkg print-architecture | grep -E '^arch [^ -]+ [0-9]+$') # ... and there are config files and zero installable platforms, fail. if [ -z "${platform}" ]; then printf 'opkbuild: Error: %s\n' \ -- cgit v0.9.1