Skip to content

Commit d785282

Browse files
committed
removed wildcard from adb push for restoring internal storage, as it lead to an error 'failed to copy './backup-tmp/Storage/40217682857069113.jpg' to './backup-tmp/Storage/Android': secure_mkdirs() failed: No such file or directory' for me.
1 parent d570a14 commit d785282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/restore_func.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function restore_func() {
108108

109109
# Restore internal storage
110110
cecho "Restoring internal storage."
111-
adb push ./backup-tmp/Storage/* /storage/emulated/0
111+
adb push ./backup-tmp/Storage/ /storage/emulated/0/
112112

113113
# Restore contacts
114114
cecho "Pushing backed up contacts to device."
@@ -135,4 +135,4 @@ function restore_func() {
135135
remove_backup_tmp
136136

137137
cecho "Data restored!"
138-
}
138+
}

0 commit comments

Comments
 (0)