extract_utils: Use temporary folder for system dump

* This way it's automatically deleted at the end of the extraction

Change-Id: I77b3357875b8070d370f04c5a245f9aa3ca1939c
This commit is contained in:
conbold
2017-11-10 16:33:38 +01:00
committed by Bruno Martins
parent df29022a38
commit 575c63567e

View File

@@ -887,7 +887,7 @@ function extract() {
fi
if [ -f "$SRC" ] && [ "${SRC##*.}" == "zip" ]; then
DUMPDIR="$LINEAGE_ROOT"/system_dump
DUMPDIR="$TMPDIR"/system_dump
# Check if we're working with the same zip that was passed last time.
# If so, let's just use what's already extracted.