From ed98bb2d2285e9e51e4ddc825046b6ff04b544cb Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Sat, 24 Apr 2021 10:43:25 -0400 Subject: [PATCH] fix add configure parameters to retroarch if build with recipe "recipes/linux/retroarch-linux-x64.conf" and try to add a parameter line CONFIGURE ./configure --enable-something the KEY VALUE variable fails. Signed-off-by: Henry Castro --- libretro-buildbot-recipe.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 9f8686f2..8e157e08 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -24,15 +24,16 @@ ENTRY_ID="" # ----- read variables from recipe config ----- while read line; do [ -z "${line}" ] && continue - KEY="${line% *}" + KEY="${line%% *}" VALUE="${line#* }" rm -f -- "$TMPDIR/vars" + if [ "${KEY}" = "PATH" ]; then export PATH=${VALUE}:${ORIGPATH} echo PATH=${VALUE}:${ORIGPATH} >> $TMPDIR/vars else - export ${KEY}=${VALUE} - echo ${KEY}=${VALUE} >> $TMPDIR/vars + export ${KEY}="${VALUE}" + echo ${KEY}="${VALUE}" >> $TMPDIR/vars fi echo "Setting: ${KEY} ${VALUE}" done < $RECIPE.conf