Closed chaotix- closed 8 years ago
I'd merge the regexp one happily, but would prefer solving the other slightly different (see note there). As I see no way to cherry-pick the one I'd accept (at least not via this web gui), I'd accept your offer to create separate PRs (always the better idea ;)
I thought it would be cleaner directly in the bash function. Yes for running the script it makes no difference, but somebody may just want to source the functions so s/he can call them directly from the shell.
Also it might be more confusing as the backup scripts need to be called from the base directory (because they create the "userApps" subdirectory) but then the functions defined in these scripts would need to be called in the subdirectory.
But I don't feel strongly either way. These are just the reasons why I decided to do it the way I did. I you feel otherwise, I can move the 'cd'.
OK, I've cherry-picked the serial one, and implemented the other one as described. Please test if it works this way :)
PS: As for your other concern, the restore scripts are modified the same way.
Both fixes are not related. (The ADB mess up explained in the patch also happens via direct USB connection.)
If you want, I can create seperate pull requests, but as the changes are so minor I thought it would be easier this way.