@@ -9,9 +9,6 @@ export SHALLOW_MASTER='--depth 1 --branch master --single-branch '
9
9
# use this if you started with SHALLOW and now want the full repository with history
10
10
# git fetch --unshallow
11
11
12
- # Use for installing locally
13
- # cd $(bundle exec arduino_library_location.rb)
14
-
15
12
if ! [ $( id -u) = 0 ]; then
16
13
bundle config --local path vendor/bundle
17
14
bundle install
22
19
# add missing libraries
23
20
export GITHUB=" https://github.com/Arduino-CI"
24
21
if [ -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
+ )
27
27
else
28
28
git clone $SHALLOW_MASTER $GITHUB /Adafruit_BusIO.git
29
29
fi
30
30
31
31
if [ -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
+ )
34
37
else
35
38
git clone $SHALLOW_MAIN $GITHUB /Adafruit_MAX31865.git
36
39
fi
37
40
38
41
if [ -d " ./Ethernet" ]; then
39
- echo update Ethernet
40
- (cd Ethernet; git pull)
42
+ (
43
+ echo update Ethernet
44
+ cd Ethernet
45
+ git pull
46
+ )
41
47
else
42
48
git clone $SHALLOW_MASTER $GITHUB /Ethernet.git
43
49
fi
44
50
45
51
if [ -d " ./LiquidCrystal" ]; then
46
- echo update LiquidCrystal
47
- (cd LiquidCrystal; git pull)
52
+ (
53
+ echo update LiquidCrystal
54
+ cd LiquidCrystal
55
+ git pull
56
+ )
48
57
else
49
58
git clone $SHALLOW_MASTER $GITHUB /LiquidCrystal.git
50
59
fi
51
60
52
61
if [ -d " ./RTClib" ]; then
53
- echo update RTClib
54
- (cd RTClib; git pull)
62
+ (
63
+ echo update RTClib
64
+ cd RTClib
65
+ git pull
66
+ )
55
67
else
56
68
git clone $SHALLOW_MASTER $GITHUB /RTClib.git
57
69
fi
58
70
59
71
if [ -d " ./Keypad" ]; then
60
- echo update Keypad
61
- (cd Keypad; git pull)
72
+ (
73
+ echo update Keypad
74
+ cd Keypad
75
+ git pull
76
+ )
62
77
else
63
78
git clone $SHALLOW_MASTER $GITHUB /Keypad.git
64
79
fi
65
80
66
81
if [ -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
+ )
69
87
else
70
88
git clone $SHALLOW_MASTER $GITHUB /Arduino-PID-Library.git
71
89
fi
72
90
73
91
if [ -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
+ )
76
97
else
77
98
git clone $SHALLOW_MASTER $GITHUB /Arduino-PID-AutoTune-Library.git
78
99
fi
79
100
80
101
if [ -d " ./SD" ]; then
81
- echo update SD
82
- (cd SD; git pull)
102
+ (
103
+ echo update SD
104
+ cd SD
105
+ git pull
106
+ )
83
107
else
84
108
git clone $SHALLOW_MAIN $GITHUB /SD.git
85
109
fi
0 commit comments