diff options
author | Daniel Hansson <github@hanssonit.se> | 2021-11-11 22:09:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 22:09:41 +0300 |
commit | 394186169d66b702c998de0473577e6f973bd687 (patch) | |
tree | e6a1630c0f2d8a2846675c06660500018d1db75f | |
parent | 574a3ff5f18b3813ccfefcdf34680f933168e002 (diff) |
Fix SC (#2130)
Co-authored-by: szaimen <szaimen@e.mail.de>
-rw-r--r-- | lib.sh | 2 | ||||
-rw-r--r-- | not-supported/offshore-backup-wizard.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -782,7 +782,7 @@ local tls_alpn_01="certbot certonly --preferred-challenges tls-alpn-01 $default local dns="certbot certonly --manual --manual-public-ip-logging-ok --preferred-challenges dns $default_le" local methods=(standalone dns) -for f in ${methods[*]} +for f in "${methods[@]}" do print_text_in_color "${ICyan}" "Trying to generate certs and validate them with $f method." current_method="" diff --git a/not-supported/offshore-backup-wizard.sh b/not-supported/offshore-backup-wizard.sh index d026ecac..0d7cec2a 100644 --- a/not-supported/offshore-backup-wizard.sh +++ b/not-supported/offshore-backup-wizard.sh @@ -77,7 +77,7 @@ fi # Get backup mountpoint from daily-borg-backup.sh DAILY_BACKUP_MOUNTPOINT="$(grep "BACKUP_MOUNTPOINT=" "$DAILY_BACKUP_FILE" | sed 's|.*BACKUP_MOUNTPOINT="||;s|"$||')" DAILY_BACKUP_TARGET="$(grep "BACKUP_TARGET_DIRECTORY=" "$DAILY_BACKUP_FILE" | sed 's|.*BACKUP_TARGET_DIRECTORY="||;s|"$||')" -DAILY_BACKUP_DIFFERENCE="${DAILY_BACKUP_TARGET##$DAILY_BACKUP_MOUNTPOINT}" +DAILY_BACKUP_DIFFERENCE="${DAILY_BACKUP_TARGET##"$DAILY_BACKUP_MOUNTPOINT"}" if [ -z "$DAILY_BACKUP_MOUNTPOINT" ] || [ -z "$DAILY_BACKUP_TARGET" ] || [ -z "$DAILY_BACKUP_DIFFERENCE" ] then msg_box "One needed variable from daily-borg-backup.sh is empty. |