com php-src: Let's not assume bash is always /bin/bash.: ext/session/mod_files.sh

From: Date: Mon, 02 Feb 2015 11:31:10 +0000
Subject: com php-src: Let's not assume bash is always /bin/bash.: ext/session/mod_files.sh
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84569@lists.php.net to get a copy of this message
Commit: 9d8b1170aa03dfc6cb52cb41f24fbb9c44573d89 Author: Adam Harvey <aharvey@php.net> Mon, 2 Feb 2015 11:31:10 +0000 Parents: a7b3abe4e6f5e2fdfd8d55b676c9ca6b3f9c8cc8 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d8b1170aa03dfc6cb52cb41f24fbb9c44573d89 Log: Let's not assume bash is always /bin/bash. Changed paths: M ext/session/mod_files.sh Diff: diff --git a/ext/session/mod_files.sh b/ext/session/mod_files..sh index 6e5d0ca..75ac6a2 100644 --- a/ext/session/mod_files.sh +++ b/ext/session/mod_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ "$2" = "" ]] || [[ "$3" = "" ]]; then echo "Usage: $0 BASE_DIRECTORY DEPTH HASH_BITS" @@ -61,5 +61,5 @@ echo "Creating session path in $directory with a depth of $depth for session.has for i in $hash_chars; do newpath="$directory/$i" mkdir $newpath || exit 1 - /bin/bash $0 $newpath expr $depth - 1 $hashbits recurse + bash $0 $newpath expr $depth - 1 $hashbits recurse done

« previous php.cvs (#84569) next »