diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
| commit | 44901943894cad8b210c086e88f42bff82b0211a (patch) | |
| tree | c63c55d71313971dadefb75d8b8df24390268d36 /http/bin | |
| parent | 71052b8c265c500f8a39f5e0763b74cb5df071fc (diff) | |
replaces :: with `cut` for POSIX compatibility in upp* source files
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/prune_out | 2 |
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}" |
