]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Kasowanie katalogu buildu - BT #150
authorxf0r3m <jakubstasinski@protonmail.com>
Tue, 9 Jan 2024 13:59:41 +0000 (14:59 +0100)
committerxf0r3m <jakubstasinski@protonmail.com>
Tue, 9 Jan 2024 13:59:41 +0000 (14:59 +0100)
immudex-build

index 272a910af9a30428789928d8d5df1f446af07cb7..2fabc72fc29be378ed5e30e570a83da9727ebd61 100755 (executable)
@@ -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...";