diff options
Diffstat (limited to 'src/opkbuild')
-rw-r--r-- | src/opkbuild | 3 |
1 files changed, 1 insertions, 2 deletions
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' \ |