From 9372acba3f7d550ed4eba486d3814db4c9e4f4b5 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 8 Oct 2024 10:08:48 +0300 Subject: [PATCH] pre_update.sh package scripts will now be included in bpm files --- bpm-package | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bpm-package b/bpm-package index 206ef59..8213e13 100755 --- a/bpm-package +++ b/bpm-package @@ -61,10 +61,14 @@ else echo "post_install.sh file found" toCompress+=("post_install.sh") fi + if [ -f pre_remove.sh ]; then + echo "pre_remove.sh file found" + toCompress+=("pre_remove.sh") + fi if [ -f post_remove.sh ]; then - echo "post_remove.sh file found" - toCompress+=("post_remove.sh") - fi + echo "post_remove.sh file found" + toCompress+=("post_remove.sh") + fi if [ -d source-files ]; then if [ ! -z "$(ls -A source-files)" ]; then echo "source-files/ directory found"