diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-29 22:42:04 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-29 22:42:04 (EST) |
commit | 0ee239776cdfefadb611885d8e88a1cc9174301f (patch) | |
tree | f21888a940347788ad1a4fdf5a091d522ff4d169 | |
parent | 428bfdda7777192805bdff635f4d32011ba01ac1 (diff) |
Fix substitution command in platform detection.
-rw-r--r-- | src/opkbuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opkbuild b/src/opkbuild index 1c57869..5167563 100644 --- a/src/opkbuild +++ b/src/opkbuild @@ -89,7 +89,7 @@ if [ ! -f config ]; then # If a target platform was not specified ... elif [ -z "${platform}" ]; then platform=$(opkg print-architecture | \ - sed -n '^s/arch \([^ -][^ -]*\) [0-9][0-9]*$/\1/p') + sed -n 's/^arch \([^ -][^ -]*\) [0-9][0-9]*$/\1/p') # ... and there are config files and zero installable platforms, fail. if [ -z "${platform}" ]; then printf 'opkbuild: Error: %s\n' \ |