How do I make this file.sh executable via double click?

后端 未结 5 1589
长发绾君心
长发绾君心 2020-11-28 17:42

First off I\'m using Mac.

Next, I need to execute this \"file.sh\" we will call it. Everytime I need to execute it I have to open Terminal and type:

         


        
5条回答
  •  一个人的身影
    2020-11-28 18:41

    Remove the extension altogether and then double-click it. Most system shell scripts are like this. As long as it has a shebang it will work.

提交回复
热议问题