summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-31 19:13:51 (GMT)
committerAlexey Neyman <stilor@att.net>2017-09-03 19:12:14 (GMT)
commit1e4eeb5c3b0f9156ed679c4aed50ba5f97c3939b (patch)
treec29bd1a8c1f569b93b01f43f3607a5b30a828e75 /scripts/functions
parente83a2e233326f183766b78e579332880339cb5e7 (diff)
Workaround for static uClibc-ng issue with -lpthread
Also, preserve .config when running test-package.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index dde3eb7..b8b4913 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -318,10 +318,24 @@ CT_DoExecLog() {
local level="$1"
local cur_cmd
local ret
+ local cmd_seen
shift
+
(
for i in "$@"; do
- cur_cmd+="'${i}' "
+ case "${i}" in
+ *=*)
+ if [ -z "${cmd_seen}" ]; then
+ cur_cmd+=" ${i%%=*}='${i#*=}'"
+ else
+ cur_cmd+=" '${i}'"
+ fi
+ ;;
+ *)
+ cur_cmd+=" '${i}'"
+ cmd_seen=y
+ ;;
+ esac
done
while true; do
case "${1}" in