You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I wrote a simple script that can help me to work with ADB (Android Debug Bridge). Commands executed in terminal window works fine, but when i wrote it in .sh file it failed. Here is a code. adb.exe is in the $PATH.
λ cd "C://Users/stani/Desktop/Android Image Kitchen" && adb.exe push image-new.img /sdcard/boot.img && adb.exe shell su -c dd if=/sdcard/boot.img of=/dev/block/mmcblk0p7 bs=4096
4997 KB/s (8419328 bytes in 1.645s)
2055+1 records in
2055+1 records out
8419328 bytes transferred in 1.023 secs (8230037 bytes/sec)
BUT in .sh file:
λ sh test.sh
failed to copy 'image-new.img' to 'D:/Apps/cmder/vendor/git-for-windows/sdcard/boot.img': secure_mkdirs failed: No such file or directory
Why is it happening? How it can be fixed?
The text was updated successfully, but these errors were encountered:
Hello. I wrote a simple script that can help me to work with ADB (Android Debug Bridge). Commands executed in terminal window works fine, but when i wrote it in .sh file it failed. Here is a code. adb.exe is in the $PATH.
BUT in .sh file:
Why is it happening? How it can be fixed?
The text was updated successfully, but these errors were encountered: