1
0
angie-conv-image/image-entry.d/75-remove-merged-tree.sh
2024-07-31 14:04:15 +03:00

14 lines
306 B
Bash
Executable File

#!/bin/sh
set -f
. /image-entry.d/00-common.envsh
IEP_RETAIN_MERGED_TREE=$(gobool_to_int "${IEP_RETAIN_MERGED_TREE:-0}" 0)
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