From fc21e2c4587b3f65db83ec8f5babd118229dd5b4 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 1 Aug 2026 23:13:43 +0200 Subject: [PATCH] fix shellcheck --- tools/addon/all-templates.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/addon/all-templates.sh b/tools/addon/all-templates.sh index abb14de2c..5ab97068f 100644 --- a/tools/addon/all-templates.sh +++ b/tools/addon/all-templates.sh @@ -191,11 +191,11 @@ msg_ok "Downloaded LXC template" # Create variable for 'pct' options PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}}) -[[ " ${PCT_OPTIONS[@]} " =~ " -rootfs " ]] || PCT_OPTIONS+=(-rootfs $CONTAINER_STORAGE:${PCT_DISK_SIZE:-8}) +[[ " ${PCT_OPTIONS[*]} " =~ " -rootfs " ]] || PCT_OPTIONS+=(-rootfs $CONTAINER_STORAGE:${PCT_DISK_SIZE:-8}) # Create LXC msg_info "Creating LXC container" -pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || { +pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} "${PCT_OPTIONS[@]}" >/dev/null || { msg_error "A problem occured while trying to create container." exit 1 }