build: Make eat use the latest zip in $OUT

* Fixes weird issues with timestamp differences

Change-Id: Ibeb0c5043b646faab6ce372290acf7efb4f22e15
gugelfrei
Paul Keith 7 years ago committed by Bruno Martins
parent a2440d0898
commit b11d5736b0

@ -102,9 +102,7 @@ alias bib=breakfast
function eat() function eat()
{ {
if [ "$OUT" ] ; then if [ "$OUT" ] ; then
MODVERSION=$(get_build_var LINEAGE_VERSION) ZIPPATH=`ls -tr "$OUT"/lineage-*.zip | tail -1`
ZIPFILE=lineage-$MODVERSION.zip
ZIPPATH=$OUT/$ZIPFILE
if [ ! -f $ZIPPATH ] ; then if [ ! -f $ZIPPATH ] ; then
echo "Nothing to eat" echo "Nothing to eat"
return 1 return 1

Loading…
Cancel
Save