Skip to content

Commit 56c1b31

Browse files
author
foobar
committed
- Added session.hash_bits_per_character support. (3rd param)
(Changes by: waltzer at autumnweave dot com)
1 parent 8be61d7 commit 56c1b31

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ext/session/mod_files.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ if test "$2" = "0"; then
99
exit 0
1010
fi
1111

12-
for i in a b c d e f 0 1 2 3 4 5 6 7 8 9; do
12+
hash_chars="0 1 2 3 4 5 6 7 8 9 a b c d e f"
13+
if test "$3" -a "$3" -ge "5"; then
14+
hash_chars="$hash_chars g h i j k l m n o p q r s t u v"
15+
if test "$3" -eq "6"; then
16+
hash_chars="$hash_chars w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - ,"
17+
fi
18+
fi
19+
20+
for i in $hash_chars; do
1321
newpath="$1/$i"
1422
mkdir $newpath || exit 1
15-
sh $0 $newpath `expr $2 - 1`
23+
sh $0 $newpath `expr $2 - 1 $3`
1624
done

0 commit comments

Comments
 (0)