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()
{
if [ "$OUT" ] ; then
MODVERSION=$(get_build_var LINEAGE_VERSION)
ZIPFILE=lineage-$MODVERSION.zip
ZIPPATH=$OUT/$ZIPFILE
ZIPPATH=`ls -tr "$OUT"/lineage-*.zip | tail -1`
if [ ! -f $ZIPPATH ] ; then
echo "Nothing to eat"
return 1

Loading…
Cancel
Save