aboutsummaryrefslogtreecommitdiff
path: root/http/bin
diff options
context:
space:
mode:
Diffstat (limited to 'http/bin')
-rwxr-xr-xhttp/bin/prune_out2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/bin/prune_out b/http/bin/prune_out
index c95c2b4..f8bbcab 100755
--- a/http/bin/prune_out
+++ b/http/bin/prune_out
@@ -18,7 +18,7 @@ do
for layout in $(find share/layouts -name "*.layout.upp${out_ext}"); do
layout="$(basename "$layout")"
- layout="${layout::${#layout}-15}"
+ layout="$(echo ${layout} | cut -c1-$(( ${#layout} - 15 )) )"
rel_path="$(echo "${out}" | cut -c5-)"
base_rel_path="${rel_path%%.${out_ext}}"
src_path="src/${base_rel_path}.${layout}.upp${out_ext}"