Browse Source

Fix the way bash is invoked.

Using /usr/bin/env is more portable to various *nix flavours.
Fixes #2688
mark_story 14 years ago
parent
commit
5713cd3269
3 changed files with 4 additions and 4 deletions
  1. 1 1
      app/Console/cake
  2. 2 2
      lib/Cake/Console/Templates/skel/Console/cake
  3. 1 1
      lib/Cake/Console/cake

+ 1 - 1
app/Console/cake

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ################################################################################
 #
 # Bake is a shell script for running CakePHP bake script

+ 2 - 2
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
@@ -30,4 +30,4 @@ APP=`pwd`
 
 exec php -q "$LIB"cake.php -working "$APP" "$@"
 
-exit;
+exit;

+ 1 - 1
lib/Cake/Console/cake

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ################################################################################
 #
 # Bake is a shell script for running CakePHP bake script