chore: what the fuck

This commit is contained in:
2025-06-19 23:25:30 +07:00
parent fa12cfc815
commit 2ec777f8d5
10 changed files with 98 additions and 3 deletions

15
os/android/restore.sh Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/bash
release_output=$(cat /etc/os-release)
declare -a backup_dirs=("Alarms" "DCIM" "Documents" "Download" "Movies" "Music" "Pictures" "Podcasts" "Recordings" "Ringtones" "SwiftBackup")
for v in "${backup_dirs[@]}"
do
if [[ $release_output == *"MSYS2"* ]] || [ -f /git-bash.exe ] || [ -f /msys2.exe ]; then
# We're on Windows
echo "adb push $v /sdcard/" > restore.bat
./restore.bat
rm restore.bat
else
adb push $v /sdcard/
fi
done