From 426c71f6007bb9fa5b917047484c2109c95b7dd3 Mon Sep 17 00:00:00 2001 From: clsr Date: Sun, 3 Jul 2016 08:22:53 +0200 Subject: Update pomf2gomf for gomf-0.4.0 --- pomf2gomf.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pomf2gomf.bash b/pomf2gomf.bash index 8744dc1..7f3d172 100755 --- a/pomf2gomf.bash +++ b/pomf2gomf.bash @@ -48,13 +48,13 @@ for file in "$pomf"/*; do ext=".$ext" fi name="$id" - while [ ${#name} -lt 3 ]; do + while [ ${#name} -lt 4 ]; do name="_$name" done - id1="${name:0:1}" # first letter - id2="${name:1:2}" # second and third letter - hash1="${sha:0:1}" # first letter - hash2="${sha:1:2}" # second and third letter + id1="${name:0:2}" # first two letters + id2="${name:2:2}" # third and fourth letter + hash1="${sha:0:2}" # first two letters + hash2="${sha:2:2}" # third and fourth letter hashd="$gomf/upload/files/$hash1/$hash2/$sha" idd="$gomf/upload/ids/$id1/$id2/$id" -- cgit