|
|
@@ -4,10 +4,7 @@ rm -rf inav && echo "Cleaning up..."
|
|
|
git clone -b $BRANCH --single-branch https://github.com/iNavFlight/inav.git && echo "Latest code fetched succesfully"
|
|
|
diff -crB inav patch/inav > custom.patch
|
|
|
patch -p1 --dry-run < custom.patch
|
|
|
-read -p "Do you want to continue? (y/n)" -n 1 -r
|
|
|
-echo
|
|
|
-if [[ $REPLY =~ ^[Yy]$ ]]
|
|
|
-then
|
|
|
+echo "Pausing 5 seconds... press CTRL+C to abort compilation"
|
|
|
patch -p1 < custom.patch
|
|
|
rm custom.patch
|
|
|
mkdir inav/build
|