summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2016-06-28 20:02:52 +0200
committerclsr <clsr@clsr.net>2016-06-28 20:02:52 +0200
commit37b770793de4fa6406ccea4c8191ffd5d2b816ed (patch)
tree027c422c983be2a82db6f083a5caf90767b54c39
parent19786fc87f1802c20671c9d6dcf04e2fd15aa140 (diff)
downloadgomf-tools-37b770793de4fa6406ccea4c8191ffd5d2b816ed.tar.gz
gomf-tools-37b770793de4fa6406ccea4c8191ffd5d2b816ed.zip
Update pomf2gomf for gomf-0.3.0
-rwxr-xr-xpomf2gomf.bash9
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