1
0
angie-conv-image/image-entry.d/55-remove-merged-tree.sh
Konstantin Demin a69d6c2920
refactor environment handling
also:
- drop "njs" directories (not actually used nor useful)
- rework jinja filters: more functions, shorter names, etc.
2024-07-23 00:03:46 +03:00

12 lines
232 B
Bash
Executable File

#!/bin/sh
set -f
. /image-entry.d/00-common.envsh
if [ "${IEP_RETAIN_MERGED_TREE}" = 1 ] ; then
log_always "NOT removing merged tree: ${merged_root}/"
else
log "removing merged tree: ${merged_root}/"
rm -rf "${merged_root}"
fi