From fdab517c1380daf4c85af1cbac4968b01ba5d58f Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 26 Apr 2023 13:39:18 -0700 Subject: [PATCH] disabled sensors alert on dry-run --- install.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 1adc2f1..a8ef3c4 100755 --- a/install.sh +++ b/install.sh @@ -375,8 +375,9 @@ userinstall(){ if [ -f "${rundir_absolute}/extra.installs" ] ; then /bin/bash ${rundir_absolute}/extra.installs fi - - boxborder "${grn}Please be sure to run ${lyl}sensors-detect --auto${grn} after installation completes${dfl}" + if [[ $dry_run != true ]] ; then + boxborder "${grn}Please be sure to run ${lyl}sensors-detect --auto${grn} after installation completes${dfl}" + fi } globalinstall(){ @@ -497,10 +498,18 @@ update(){ } dry-run-report(){ + box-rounded + boxborder "${grn}Dry-run Report:${dfl}" + box-norm boxborder \ - "bins_missing= ${bins_missing[@]}" \ - "backup_files= ${backup_files[@]}" \ - "installed_files= ${installed_files[@]}" + "bins_missing= " \ + "${bins_missing[@]}" \ + "backup_files= " \ + "${backup_files[@]}" \ + "installed_files= " \ + "${installed_files[@]}" \ + "installed_dirs= " \ + "${installed_dirs[@]}" } #------------------------------------------------------#