From b11d5736b023757865dd28931d8a3016e60eca57 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Thu, 2 Nov 2017 20:31:33 +0100 Subject: [PATCH] build: Make eat use the latest zip in $OUT * Fixes weird issues with timestamp differences Change-Id: Ibeb0c5043b646faab6ce372290acf7efb4f22e15 --- build/envsetup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build/envsetup.sh b/build/envsetup.sh index 24ae320b..a418d214 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -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