@@ -9,9 +9,6 @@ export SHALLOW_MASTER='--depth 1 --branch master --single-branch '
99# use this if you started with SHALLOW and now want the full repository with history
1010# git fetch --unshallow
1111
12- # Use for installing locally
13- # cd $(bundle exec arduino_library_location.rb)
14-
1512if ! [ $( id -u) = 0 ]; then
1613 bundle config --local path vendor/bundle
1714 bundle install
2219# add missing libraries
2320export GITHUB=" https://github.com/Arduino-CI"
2421if [ -d " ./Adafruit_BusIO" ]; then
25- echo update Adafruit_BusIO
26- (cd Adafruit_BusIO; git pull)
22+ (
23+ echo update Adafruit_BusIO
24+ cd Adafruit_BusIO
25+ git pull
26+ )
2727else
2828 git clone $SHALLOW_MASTER $GITHUB /Adafruit_BusIO.git
2929fi
3030
3131if [ -d " ./Adafruit_MAX31865" ]; then
32- echo update Adafruit_MAX31865
33- (cd Adafruit_MAX31865; git pull)
32+ (
33+ echo update Adafruit_MAX31865
34+ cd Adafruit_MAX31865
35+ git pull
36+ )
3437else
3538 git clone $SHALLOW_MAIN $GITHUB /Adafruit_MAX31865.git
3639fi
3740
3841if [ -d " ./Ethernet" ]; then
39- echo update Ethernet
40- (cd Ethernet; git pull)
42+ (
43+ echo update Ethernet
44+ cd Ethernet
45+ git pull
46+ )
4147else
4248 git clone $SHALLOW_MASTER $GITHUB /Ethernet.git
4349fi
4450
4551if [ -d " ./LiquidCrystal" ]; then
46- echo update LiquidCrystal
47- (cd LiquidCrystal; git pull)
52+ (
53+ echo update LiquidCrystal
54+ cd LiquidCrystal
55+ git pull
56+ )
4857else
4958 git clone $SHALLOW_MASTER $GITHUB /LiquidCrystal.git
5059fi
5160
5261if [ -d " ./RTClib" ]; then
53- echo update RTClib
54- (cd RTClib; git pull)
62+ (
63+ echo update RTClib
64+ cd RTClib
65+ git pull
66+ )
5567else
5668 git clone $SHALLOW_MASTER $GITHUB /RTClib.git
5769fi
5870
5971if [ -d " ./Keypad" ]; then
60- echo update Keypad
61- (cd Keypad; git pull)
72+ (
73+ echo update Keypad
74+ cd Keypad
75+ git pull
76+ )
6277else
6378 git clone $SHALLOW_MASTER $GITHUB /Keypad.git
6479fi
6580
6681if [ -d " ./Arduino-PID-Library" ]; then
67- echo update Arduino-PID-Library
68- (cd Arduino-PID-Library; git pull)
82+ (
83+ echo update Arduino-PID-Library
84+ cd Arduino-PID-Library
85+ git pull
86+ )
6987else
7088 git clone $SHALLOW_MASTER $GITHUB /Arduino-PID-Library.git
7189fi
7290
7391if [ -d " ./Arduino-PID-AutoTune-Library" ]; then
74- echo update Arduino-PID-AutoTune-Library
75- (cd Arduino-PID-AutoTune-Library; git pull)
92+ (
93+ echo update Arduino-PID-AutoTune-Library
94+ cd Arduino-PID-AutoTune-Library
95+ git pull
96+ )
7697else
7798 git clone $SHALLOW_MASTER $GITHUB /Arduino-PID-AutoTune-Library.git
7899fi
79100
80101if [ -d " ./SD" ]; then
81- echo update SD
82- (cd SD; git pull)
102+ (
103+ echo update SD
104+ cd SD
105+ git pull
106+ )
83107else
84108 git clone $SHALLOW_MAIN $GITHUB /SD.git
85109fi
0 commit comments