diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 0c5ce9a5..febc63ff 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