diff options
author | clsr <clsr@clsr.net> | 2016-06-28 20:02:52 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-06-28 20:02:52 +0200 |
commit | 37b770793de4fa6406ccea4c8191ffd5d2b816ed (patch) | |
tree | 027c422c983be2a82db6f083a5caf90767b54c39 | |
parent | 19786fc87f1802c20671c9d6dcf04e2fd15aa140 (diff) | |
download | gomf-tools-37b770793de4fa6406ccea4c8191ffd5d2b816ed.tar.gz gomf-tools-37b770793de4fa6406ccea4c8191ffd5d2b816ed.zip |
Update pomf2gomf for gomf-0.3.0
-rwxr-xr-x | pomf2gomf.bash | 9 |
1 files 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 |