cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject git commit: Update - shebang line in hooks on Windows.
Date Fri, 13 Jun 2014 16:30:54 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 1a832e6b4 -> c5180b29d

Update - shebang line in hooks on Windows.

I think letting know to users of Windows that a shebang line is expected at
the start of their non bat scripts is a good idea. I found out myself not
knowing how to make my python and node.js scripts to work as hooks until I
read cordova-lib\src\cordova\hooker.js line 77, function

github: close #28


Branch: refs/heads/master
Commit: c5180b29d05cc274a61ebd206dec33bf5b467662
Parents: 1a832e6
Author: A.Perez <>
Authored: Fri Jun 13 17:30:36 2014 +0200
Committer: Mark Koudritsky <>
Committed: Fri Jun 13 12:28:27 2014 -0400

 cordova-lib/templates/ | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cordova-lib/templates/ b/cordova-lib/templates/
index d2563ea..accfa3a 100644
--- a/cordova-lib/templates/
+++ b/cordova-lib/templates/
@@ -73,7 +73,6 @@ All scripts are run from the project's root directory and have the root
 If a script returns a non-zero exit code, then the parent cordova command will be aborted.
 ## Writing hooks
 We highly recommend writting your hooks using Node.js so that they are
@@ -81,3 +80,7 @@ cross-platform. Some good examples are shown here:
+Also, note that even if you are working on Windows, and in case your hook scripts aren't
bat files (which is recommended, if you want your scripts to work in non-Windows operating
systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter
it needs to use to launch the script. The shebang line should match the following example:
+    #!/usr/bin/env [name_of_interpreter_executable]

View raw message