You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/28 07:39:43 UTC

[GitHub] [cordova-docs] erisu commented on a change in pull request #958: Fix hooks docs

erisu commented on a change in pull request #958: Fix hooks docs
URL: https://github.com/apache/cordova-docs/pull/958#discussion_r269884292
 
 

 ##########
 File path: www/docs/en/9.x/guide/appdev/hooks/index.md
 ##########
 @@ -383,6 +377,15 @@ If a script returns a non-zero exit code, then the parent cordova command will b
 
 > __Note__: we highly recommend writing your hooks using Node.js so that they are cross-platform, see [Javascript](#link-javascript) section above.
 
+#### Windows Quirks
+
+If you are working on Windows, and your hook scripts aren't `*.bat` files, Cordova CLI will expect a shebang line as the first line of the script. This way it knows the interpreter it needs to use to launch the script. A shebang line for a Python script could look like this:
+
+```
+#!/usr/bin/env python
+```
+
+
 
 Review comment:
   Don't need two newlines, but also not necessary to make any effort to change this.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org