diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-06-23 08:47:28 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-06-23 08:47:28 -0600 |
commit | 9ff3c66144fc47f40e039b7b59daf0218ddfaead (patch) | |
tree | 00a1ad5d98b37115f5986a8d0004758ffe2f387b | |
parent | 533cff3fadcf3b4bf2e18fe011459620a2e3b757 (diff) | |
parent | a74427fbf573bef7d9624364b1fd50d8947bd3a9 (diff) | |
download | portimg-9ff3c66144fc47f40e039b7b59daf0218ddfaead.tar.gz portimg-9ff3c66144fc47f40e039b7b59daf0218ddfaead.tar.xz |
Merge branch 'add-keep_build'
-rwxr-xr-x | bin/pkgimg.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pkgimg.sh b/bin/pkgimg.sh index fdece5a..50b721d 100755 --- a/bin/pkgimg.sh +++ b/bin/pkgimg.sh @@ -26,6 +26,7 @@ source ${LIBDIR}/pkg.sh source ${LIBDIR}/config.sh export PORTSDIR=${PORTSDIR:-${BASEDIR}/ports} +export KEEP_BUILD=${KEEP_BUILD:-0} function main { local manifest=${1:-} @@ -49,7 +50,11 @@ function main { rsync -a ${PORTTMP}/pkg/ ${installbase}/ # Cleanup - rm -rf ${PORTTMP} + if [ "${KEEP_BUILD}" = 0 ]; then + rm -rf ${PORTTMP} + else + linfo "KEEP_BUILD is set. Skipping cleanup of ${port}." + fi done dump_configs |