diff options
-rwxr-xr-x | twrp-functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp index e6a489f35..4386ff6f4 100755 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -1240,7 +1240,7 @@ int TWFunc::stream_adb_backup(string &Restore_Name) { std::string TWFunc::get_cache_dir() { if (PartitionManager.Find_Partition_By_Path(NON_AB_CACHE_DIR) == NULL) { - if (PartitionManager.Find_Partition_By_Path(NON_AB_CACHE_DIR) == NULL) { + if (PartitionManager.Find_Partition_By_Path(AB_CACHE_DIR) == NULL) { if (PartitionManager.Find_Partition_By_Path(PERSIST_CACHE_DIR) == NULL) { LOGINFO("Unable to find a directory to store TWRP logs."); return ""; |