From ddec0c9b03a919f2ec0bf032cddeab71d1e0f6d6 Mon Sep 17 00:00:00 2001
From: Vikram Dattu <vikram.dattu@espressif.com>
Date: Wed, 2 Dec 2020 15:42:37 +0530
Subject: [PATCH] Fix esp32 ci build

`readable_run export ` do not export variable for the environment

Used direct export instead.

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
---
 tensorflow/lite/micro/tools/ci_build/test_esp32.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tensorflow/lite/micro/tools/ci_build/test_esp32.sh b/tensorflow/lite/micro/tools/ci_build/test_esp32.sh
index 8341e90924e..fd4044b700f 100755
--- a/tensorflow/lite/micro/tools/ci_build/test_esp32.sh
+++ b/tensorflow/lite/micro/tools/ci_build/test_esp32.sh
@@ -28,8 +28,9 @@ source tensorflow/lite/micro/tools/ci_build/helper_functions.sh
 TARGET=esp
 
 # setup esp-idf and toolchains
+echo "Checking out esp-idf..."
 readable_run git clone --recursive --single-branch --branch release/v4.2 https://github.com/espressif/esp-idf.git
-readable_run export IDF_PATH="${ROOT_DIR}"/esp-idf
+export IDF_PATH="${ROOT_DIR}"/esp-idf
 cd $IDF_PATH
 readable_run ./install.sh
 readable_run . ./export.sh