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 1
1
#! /bin/bash
2
2
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
5
10
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"
7
12
sed ' /WCharacter.h/ s/./\/\/ &/' ~ /.ArduinoCore-API/api/ArduinoAPI.h > ~ /.ArduinoCore-API/api/tmpArduinoAPI.h
8
13
mv ~ /.ArduinoCore-API/api/tmpArduinoAPI.h ~ /.ArduinoCore-API/api/ArduinoAPI.h
9
14
10
- echo -e " \n\nLinking ..."
15
+ printf ' %s\n ' " Linking ..."
11
16
ln -sf ~ /.ArduinoCore-API/api cores/arduino/.
12
17
13
- echo " \nModule Successfully installed ..."
18
+ printf ' %s\n ' " Module Successfully setup ..."
14
19
You can’t perform that action at this time.
0 commit comments