Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the way bash is invoked.
Using /usr/bin/env is more portable to various *nix flavours.
Fixes #2688
  • Loading branch information
markstory committed Mar 16, 2012
1 parent fe3d354 commit 5713cd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Console/cake
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Console/Templates/skel/Console/cake
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
Expand Down Expand Up @@ -30,4 +30,4 @@ APP=`pwd`

exec php -q "$LIB"cake.php -working "$APP" "$@"

exit;
exit;
2 changes: 1 addition & 1 deletion lib/Cake/Console/cake
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
Expand Down

0 comments on commit 5713cd3

Please sign in to comment.