replaces :: with cut for POSIX compatibility in upp* source files

This commit is contained in:
2026-06-22 17:26:29 +01:00
parent 71052b8c26
commit 4490194389
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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}"