From 0c5692f2fc47b4b6216e2807fd4315c28b9425a4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 29 Jan 2012 23:09:44 -0500 Subject: Sometimes I hate shell script... Piping input into a read command won't work, because read will be run in a subshell and therefore be unable to modify variables of the parent shell. Also, for some reason double quotes cause the substring processing in this parameter expansion to fail: export OH_PKGVER="${version%'-'*}" --- (limited to 'src') diff --git a/src/opkbuild b/src/opkbuild index 5167563..6cae035 100644 --- a/src/opkbuild +++ b/src/opkbuild @@ -128,12 +128,13 @@ version=$(oh_get_field Version) # Set environment variables for the build configuration. export OH_PLATFORM="${platform}" export OH_ARCH="${arch}" -echo "${OH_ARCH}" | \ - IFS=- read OH_ARCH_CPU OH_ARCH_VENDOR OH_ARCH_KERNEL OH_ARCH_LIBS +IFS=- read OH_ARCH_CPU OH_ARCH_VENDOR OH_ARCH_KERNEL OH_ARCH_LIBS <