aboutsummaryrefslogtreecommitdiffstats
path: root/edifyscripting.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-07-07 12:44:05 -0700
committerKoushik Dutta <koushd@gmail.com>2011-07-07 12:44:05 -0700
commit50732e3c67454e174f008ba5443b21070f360a56 (patch)
tree1de8b3d5160ca8c03f2ca1e5605777fdc9956e21 /edifyscripting.c
parent0b06fc06969120762c921dbcb726a15f6e2d0c94 (diff)
downloadbootable_recovery-50732e3c67454e174f008ba5443b21070f360a56.zip
bootable_recovery-50732e3c67454e174f008ba5443b21070f360a56.tar.gz
bootable_recovery-50732e3c67454e174f008ba5443b21070f360a56.tar.bz2
backup and restore of /sdcard/Android (see getExternalFilesDir)
Change-Id: I6306464cdce4e3b48e0d109284e5606f65a84ee2
Diffstat (limited to 'edifyscripting.c')
-rw-r--r--edifyscripting.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/edifyscripting.c b/edifyscripting.c
index 89554d7..1634a9e 100644
--- a/edifyscripting.c
+++ b/edifyscripting.c
@@ -145,6 +145,10 @@ Value* FormatFn(const char* name, State* state, int argc, Expr* argv[]) {
free(path);
return StringValue(strdup(""));
}
+ if (0 != format_volume("/sdcard/Android")) {
+ free(path);
+ return StringValue(strdup(""));
+ }
}
done: