diff options
author | Martijn Dekker <martijn@inlv.org> | 2016-01-18 20:18:23 +0100 |
---|---|---|
committer | Martijn Dekker <martijn@inlv.org> | 2016-01-18 20:18:23 +0100 |
commit | 7771fab8209fc0d434685b52a382da2595842b70 (patch) | |
tree | 4aeb6b1791e08454dae0482f76272a4f7d66254c /.body_begin.template | |
parent | c683019d7c6b9762769e3c27f72ee54d07ae00fd (diff) |
Some more code and performance optimisations
- Use builtin 'command -v' rather than external 'which'.
- The clean_filename() function just removed the initial ./ from a file
name; do this with a parameter substitution instead. This gets rid of the
need to fork subshells for command substitutions, so is much faster.
- Where convenient, replace 'echo ... | sed ...' with fast parameter
substitutions.
Diffstat (limited to '.body_begin.template')
0 files changed, 0 insertions, 0 deletions