From 1b8ca916acfd716149f19335c332cc142e15ee13 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 5 Jan 2023 21:39:37 -0600 Subject: [PATCH] Bugfix: Install script still install static program sources despite being disabled. The if condition nested is only wrapping the print block. Move the conditional logic to the proper wrapping block. --- build/scripts/install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build/scripts/install.sh b/build/scripts/install.sh index a572807..37c5ca7 100644 --- a/build/scripts/install.sh +++ b/build/scripts/install.sh @@ -659,12 +659,10 @@ install_perform_install() { file= fi - if [[ $file != "" ]] ; then - if [[ $enable_static_programs == "yes" ]] ; then - if [[ $verbosity != "quiet" ]] ; then - echo - echo -e "${c_highlight}Installing (${c_notice}static${c_highlight}) Programs to: ${c_reset}${c_notice}${destination_programs_static}${c_reset}${c_highlight}.${c_reset}" - fi + if [[ $file != "" && $enable_static_programs == "yes" ]] ; then + if [[ $verbosity != "quiet" ]] ; then + echo + echo -e "${c_highlight}Installing (${c_notice}static${c_highlight}) Programs to: ${c_reset}${c_notice}${destination_programs_static}${c_reset}${c_highlight}.${c_reset}" fi cp $verbose_common -R ${path_build}${path_programs}${path_static}* $destination_programs_static -- 1.8.3.1