Regenerate sdcard pack only on opentx.sdcard.version change
This commit is contained in:
@@ -6,6 +6,12 @@ branch=next
|
|||||||
workdir=/home/opentx/nightly22
|
workdir=/home/opentx/nightly22
|
||||||
output=/var/www/html/2.2/nightly
|
output=/var/www/html/2.2/nightly
|
||||||
|
|
||||||
|
# Handle opentx.sdcard.version
|
||||||
|
if cmp --silent ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}/opentx.sdcard.version
|
||||||
|
then
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
cp -r ${workdir}/code/radio/sdcard/horus/opentx.sdcard.version ${workdir}
|
||||||
cd ${workdir}
|
cd ${workdir}
|
||||||
|
|
||||||
# Copy git sdcard data
|
# Copy git sdcard data
|
||||||
@@ -35,3 +41,4 @@ cd ${workdir}/sdcard/taranis && zip -r ${output}/sdcard/sdcard-taranis.zip *
|
|||||||
cd ${workdir}/sdcard/horus && zip -r ${output}/sdcard/sdcard-horus.zip *
|
cd ${workdir}/sdcard/horus && zip -r ${output}/sdcard/sdcard-horus.zip *
|
||||||
rm -Rf ${workdir}/sdcard
|
rm -Rf ${workdir}/sdcard
|
||||||
|
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user