Skip to content

Commit 8eb3c08

Browse files
committed
Merge branch 'master' into xp11out
2 parents 94824f2 + 72c3aea commit 8eb3c08

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

image/mk_europe_edition_buster.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ BASE_IMAGE_URL="http://director.downloads.raspberrypi.org/raspbian_lite/images/r
99
IMGNAME="2019-07-10-raspbian-buster-lite.img"
1010
TMPDIR="$HOME/stratux-tmp"
1111

12+
if [ "$#" -ne 2 ]; then
13+
echo "Usage: " $0 " dev|prod branch"
14+
exit 1
15+
fi
1216

1317
# cd to script directory
1418
cd "$(dirname "$0")"
@@ -68,14 +72,9 @@ rm go1.12.4.linux-armv6l.tar.gz
6872

6973
if [ "$1" == "dev" ]; then
7074
cp -ra $SRCDIR .
75+
cd stratux && git checkout $2 && cd ..
7176
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
7978
fi
8079
cd ../..
8180

0 commit comments

Comments
 (0)