 悬赏园豆:30
                [已解决问题] 
            
                    解决于 2018-05-28 10:27
                悬赏园豆:30
                [已解决问题] 
            
                    解决于 2018-05-28 10:27 
                 
        在 windows 上的 git bash 中执行下面的 chmod 命令
$ chmod +x test.sh执行后对应的文件依然是不可执行的
-rw-r--r-- 1 admin 197121   0 5月  16 11:57 test.sh请问如何解决?
git update-index --chmod=+x <your_file>
在 Windows 平台上需要使用上面的命令把文件标记为可执行
(tensorflow) E:\下载的杂\mssb\text-detection-ctpn-banjin-dev\utils\bbox>chmod +x make.sh
'chmod' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
(tensorflow) E:\下载的杂\mssb\text-detection-ctpn-banjin-dev\utils\bbox>git update-index --chmod=+x make.sh
'git' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
这该怎么解决呢?
在 test.sh 脚本头部加上 #!/bin/sh 或者 #!/bin/bash 指定解释器试试.
添加 #!/bin/bash 之后在 windows 上的 git bash 中变为可执行,但到 linux 上依然不可执行