mrrfv / open-android-backup

Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
http://openandroidbackup.me/
GNU General Public License v3.0
751 stars 40 forks source link

Removing -v from adb shell rm #3

Closed Ahtlon closed 2 years ago

Ahtlon commented 2 years ago

On my device (Android 8.1), rm doesn't have a -v switch and the script will abort with

Removing temporary files created by the companion app.
See rm --help
rm: Unknown option v

From my device

> adb shell rm --help
usage: rm [-fiRr] FILE...

Remove each argument from the filesystem.

-f      force: remove without confirmation, no error if it doesn't exist
-i      interactive: prompt for confirmation
-rR     recursive: remove directory contents