File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo " Cloning ArduinoCore API in" $HOME
4- git clone git@github.com:arduino/ArduinoCore-API ~ /.ArduinoCore-API
3+ API_FOLDER=~ /.ArduinoCore-API
4+ if [ ! -d " $API_FOLDER " ] ; then
5+ printf ' %s\n' " Cloning ArduinoCore API in $API_FOLDER "
6+ git clone git@github.com:arduino/ArduinoCore-API ~ /.ArduinoCore-API
7+ else
8+ printf ' %s\n' " API Folder already exists, skipping clone..."
9+ fi
510
6- echo " Commenting out WCharacter.h because it fails to build properly"
11+ printf ' %s\n ' " Commenting out WCharacter.h because it fails to build properly"
712sed ' /WCharacter.h/ s/./\/\/ &/' ~ /.ArduinoCore-API/api/ArduinoAPI.h > ~ /.ArduinoCore-API/api/tmpArduinoAPI.h
813mv ~ /.ArduinoCore-API/api/tmpArduinoAPI.h ~ /.ArduinoCore-API/api/ArduinoAPI.h
914
10- echo -e " \n\nLinking ..."
15+ printf ' %s\n ' " Linking ..."
1116ln -sf ~ /.ArduinoCore-API/api cores/arduino/.
1217
13- echo " \nModule Successfully installed ..."
18+ printf ' %s\n ' " Module Successfully setup ..."
1419
You can’t perform that action at this time.
0 commit comments