Browse Source

Let's not assume bash is always /bin/bash.

pull/1063/head
Adam Harvey 12 years ago
parent
commit
9d8b1170aa
  1. 4
      ext/session/mod_files.sh

4
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
Loading…
Cancel
Save