{"action":"created","issue":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/65","labels_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/65/comments","events_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/65/events","html_url":"https://github.com/drupal-composer/drupal-project/issues/65","id":113234234,"number":65,"title":"post-install script fails to run on Windows","user":{"login":"bramcordie","id":1107185,"avatar_url":"https://avatars.githubusercontent.com/u/1107185?v=3","gravatar_id":"","url":"https://api.github.com/users/bramcordie","html_url":"https://github.com/bramcordie","followers_url":"https://api.github.com/users/bramcordie/followers","following_url":"https://api.github.com/users/bramcordie/following{/other_user}","gists_url":"https://api.github.com/users/bramcordie/gists{/gist_id}","starred_url":"https://api.github.com/users/bramcordie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramcordie/subscriptions","organizations_url":"https://api.github.com/users/bramcordie/orgs","repos_url":"https://api.github.com/users/bramcordie/repos","events_url":"https://api.github.com/users/bramcordie/events{/privacy}","received_events_url":"https://api.github.com/users/bramcordie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T16:11:39Z","updated_at":"2015-11-11T15:23:22Z","closed_at":null,"body":"The composer post install command fails on Windows with the following error message:\r\n```\r\n'scripts' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nScript scripts/composer/post-install.sh handling the post-install-cmd event returned with an error\r\n\r\n  [RuntimeException]\r\n  Error Output: 'scripts' is not recognized as an internal or external command,\r\n  operable program or batch file.\r\n```\r\n\r\nI did a quick Github search: ```filename:composer.json q:post-install-cmd*.sh``` and noticed most projects run shell scripts with bash.\r\n\r\nWhen I update the _scripts_ property in _composer.json_ the problem is resolved:\r\n```\r\n\"scripts\": {\r\n  \"post-install-cmd\": \"bash ./scripts/composer/post-install.sh\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/comments/155814808","html_url":"https://github.com/drupal-composer/drupal-project/issues/65#issuecomment-155814808","issue_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/65","id":155814808,"user":{"login":"bramcordie","id":1107185,"avatar_url":"https://avatars.githubusercontent.com/u/1107185?v=3","gravatar_id":"","url":"https://api.github.com/users/bramcordie","html_url":"https://github.com/bramcordie","followers_url":"https://api.github.com/users/bramcordie/followers","following_url":"https://api.github.com/users/bramcordie/following{/other_user}","gists_url":"https://api.github.com/users/bramcordie/gists{/gist_id}","starred_url":"https://api.github.com/users/bramcordie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramcordie/subscriptions","organizations_url":"https://api.github.com/users/bramcordie/orgs","repos_url":"https://api.github.com/users/bramcordie/repos","events_url":"https://api.github.com/users/bramcordie/events{/privacy}","received_events_url":"https://api.github.com/users/bramcordie/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T15:23:22Z","updated_at":"2015-11-11T15:23:22Z","body":"```sh``` or  ```bash``` works either way when I'm using the git bash shell.\r\nIf you want to use Powershell you will have to make ```sh.exe``` available on ```PATH```, see: http://stackoverflow.com/questions/1098786/run-bash-script-from-windows-powershell."}}