From 94edbfef52ff7b0101f8cba9be68443980c23586 Mon Sep 17 00:00:00 2001 From: Roman Hosek Date: Wed, 9 Sep 2020 08:23:37 +0200 Subject: [PATCH] keep compatibility --- 00_bootstrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/00_bootstrap.sh b/00_bootstrap.sh index 3a510c4..cfffc51 100755 --- a/00_bootstrap.sh +++ b/00_bootstrap.sh @@ -11,4 +11,9 @@ git clone --depth=1 https://github.com/Ai-Thinker-Open/Telink_825X_SDK SDK echo \#\# Download ATC_MiThermometer and patch makefile git clone https://github.com/atc1441/ATC_MiThermometer -sed -i '' 's#TEL_PATH := ..\/..#TEL_PATH := ..\/../SDK\/#g' ATC_MiThermometer/ATC_Thermometer/makefile + +if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' 's#TEL_PATH := ..\/..#TEL_PATH := ..\/../SDK\/#g' ATC_MiThermometer/ATC_Thermometer/makefile +else + sed -i "/TEL_PATH := ..\/../c TEL_PATH := ..\/../SDK\/" ATC_MiThermometer/ATC_Thermometer/makefile +fi \ No newline at end of file