From 37b770793de4fa6406ccea4c8191ffd5d2b816ed Mon Sep 17 00:00:00 2001 From: clsr Date: Tue, 28 Jun 2016 20:02:52 +0200 Subject: Update pomf2gomf for gomf-0.3.0 --- pomf2gomf.bash | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pomf2gomf.bash b/pomf2gomf.bash index 5241283..8744dc1 100755 --- a/pomf2gomf.bash +++ b/pomf2gomf.bash @@ -47,11 +47,12 @@ for file in "$pomf"/*; do else ext=".$ext" fi - while [ ${#id} -lt 3 ]; do - id="_$id" + name="$id" + while [ ${#name} -lt 3 ]; do + name="_$name" done - id1="${id:0:1}" # first letter - id2="${id:1:2}" # second and third letter + 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 -- cgit