From 5713cd3269fb4cbc0cd86f21d0b03418a3015916 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 15 Mar 2012 20:20:39 -0400 Subject: [PATCH] Fix the way bash is invoked. Using /usr/bin/env is more portable to various *nix flavours. Fixes #2688 --- app/Console/cake | 2 +- lib/Cake/Console/Templates/skel/Console/cake | 4 ++-- lib/Cake/Console/cake | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/cake b/app/Console/cake index 22331e20a..447743d0b 100755 --- a/app/Console/cake +++ b/app/Console/cake @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script diff --git a/lib/Cake/Console/Templates/skel/Console/cake b/lib/Cake/Console/Templates/skel/Console/cake index d2ef17ce2..447743d0b 100644 --- a/lib/Cake/Console/Templates/skel/Console/cake +++ b/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; \ No newline at end of file +exit; diff --git a/lib/Cake/Console/cake b/lib/Cake/Console/cake index 753668468..424866966 100755 --- a/lib/Cake/Console/cake +++ b/lib/Cake/Console/cake @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ################################################################################ # # Bake is a shell script for running CakePHP bake script