summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-29 19:54:25 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-29 19:54:25 (EST)
commite154d497346078ed2a7696124b274a87997b2b0b (patch)
treea8ac50de63b6a023d34f12570a31336bda9b04c6
parent7e663ebe5a876ad424729353e12ad9dd13590bfa (diff)
Fix platform regular expression.
-rw-r--r--src/opkbuild3
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' \