summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 16:09:41 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 16:40:03 +0200
commitc9ff7a341b03b3013eca57c7554417b623ab6bb0 (patch)
treee8cca26407ec35a3f31823f3bd77c861c51de347 /openrecoveryscript.cpp
parentPort reboot functions to C++ (diff)
downloadandroid_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.gz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.bz2
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.lz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.xz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.zst
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.zip
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r--openrecoveryscript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index bcd4acb28..23641f7f3 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -198,6 +198,10 @@ int OpenRecoveryScript::run_script_file(void) {
strncpy(value2, tok, line_len - remove_nl);
DataManager_SetStrValue(TW_BACKUP_NAME, value2);
ui_print("Backup folder set to '%s'\n", value2);
+ if (PartitionManager.Check_Backup_Name(true) != 0) {
+ ret_val = 1;
+ continue;
+ }
} else {
char empt[50];
strcpy(empt, "(Current Date)");