Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2021-11-11 22:09:41 +0300
committerGitHub <noreply@github.com>2021-11-11 22:09:41 +0300
commit394186169d66b702c998de0473577e6f973bd687 (patch)
treee6a1630c0f2d8a2846675c06660500018d1db75f
parent574a3ff5f18b3813ccfefcdf34680f933168e002 (diff)
Fix SC (#2130)
Co-authored-by: szaimen <szaimen@e.mail.de>
-rw-r--r--lib.sh2
-rw-r--r--not-supported/offshore-backup-wizard.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib.sh b/lib.sh
index f9413959..3140bef6 100644
--- a/lib.sh
+++ b/lib.sh
@@ -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.