File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ BASE_IMAGE_URL="http://director.downloads.raspberrypi.org/raspbian_lite/images/r
9
9
IMGNAME=" 2019-07-10-raspbian-buster-lite.img"
10
10
TMPDIR=" $HOME /stratux-tmp"
11
11
12
+ if [ " $# " -ne 2 ]; then
13
+ echo " Usage: " $0 " dev|prod branch"
14
+ exit 1
15
+ fi
12
16
13
17
# cd to script directory
14
18
cd " $( dirname " $0 " ) "
@@ -68,14 +72,9 @@ rm go1.12.4.linux-armv6l.tar.gz
68
72
69
73
if [ " $1 " == " dev" ]; then
70
74
cp -ra $SRCDIR .
75
+ cd stratux && git checkout $2 && cd ..
71
76
else
72
- git clone --recursive https://github.com/b3nn0/stratux.git
73
- # TODO: remove me
74
- # cd stratux
75
- # git checkout flarm-nmea
76
- # git submodule sync
77
- # git submodule update --remote dump1090
78
- # cd ..
77
+ git clone --recursive -b $2 https://github.com/b3nn0/stratux.git
79
78
fi
80
79
cd ../..
81
80
You can’t perform that action at this time.
0 commit comments