From 0ee239776cdfefadb611885d8e88a1cc9174301f Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Sun, 29 Jan 2012 22:42:04 -0500
Subject: Fix substitution command in platform detection.

---
(limited to 'src')

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' \
--
cgit v0.9.1