]> Kevux Git Server - fll/commitdiff
Bugfix: Install script still install static program sources despite being disabled.
authorKevin Day <thekevinday@gmail.com>
Fri, 6 Jan 2023 03:39:37 +0000 (21:39 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 6 Jan 2023 03:39:37 +0000 (21:39 -0600)
The if condition nested is only wrapping the print block.
Move the conditional logic to the proper wrapping block.

build/scripts/install.sh

index a572807186a0f5fd848bd326c72c6b28b19d8e1c..37c5ca753b117023459973b4b25a430d5579a8e2 100644 (file)
@@ -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