projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b3abe
)
Let's not assume bash is always /bin/bash.
author
Adam Harvey
<aharvey@php.net>
Mon, 2 Feb 2015 11:31:10 +0000
(11:31 +0000)
committer
Adam Harvey
<aharvey@php.net>
Mon, 2 Feb 2015 11:31:10 +0000
(11:31 +0000)
ext/session/mod_files.sh
patch
|
blob
|
history
diff --git
a/ext/session/mod_files.sh
b/ext/session/mod_files.sh
index 6e5d0cad6f12a4d7f7d13b0ca06a1ffff593aa4b..75ac6a2fd7980199410e80027171d652984e886f 100644
(file)
--- 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