From f55dad6368bf5063623c0d2151750cd37c959ba2 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Tue, 9 Jan 2024 14:59:41 +0100 Subject: [PATCH] Kasowanie katalogu buildu - BT #150 --- immudex-build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/immudex-build b/immudex-build index 272a910..2fabc72 100755 --- a/immudex-build +++ b/immudex-build @@ -45,6 +45,12 @@ if [ ! -f /sbin/debootstrap ]; then create_enviroment fi +if [ -d ${HOME}/build/immudex-${debver}/${arch} ]; then + echo -n "Removing old immudex build directory structure..."; + sudo rm -rvf ${HOME}/build/immudex-${debver} >> immudex_build.log 2>&1; + if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi +fi + #Creating root directory sturcture for immudex build: if [ ! -d ${HOME}/build/immudex-${debver}/${arch} ]; then echo -n "Creating root directory structure for immudex build..."; -- 2.39.5