How to run BASH script in my Android?

后端 未结 5 1503

My same BASH script is working in Fedora/CentOS.

But I am testing one Android eee pad transformer. \"e

5条回答
  •  心在旅途
    2021-01-31 11:15

    in Android the shell is located in /system/bin/sh not /bin/sh like it is on most Unix-like systems. So even if you change #!/bin/bash to #!/bin/sh it will still not work. you'll have to use #!/system/bin/sh

    Android is not a GNU/Linux distribution so you can't expect that all scripts that run on GNU/Linux to also work on Android.

提交回复
热议问题