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%'-'*}" --- diff --git a/lib/architecture b/lib/architecture index 47102ba..4af24ef 100644 --- a/lib/architecture +++ b/lib/architecture @@ -32,7 +32,9 @@ oh_is_buildable() # XXX: Handle platforms. # Tokenize the 4-tuple binary architecture. - echo "${_pkgarch}" | IFS=- read _pkgcpu _pkgvendor _pkgkernel _pkglibs + IFS=- read _pkgcpu _pkgvendor _pkgkernel _pkglibs <