From 0609c7fedc8bf0421caac57cb1fd7e0104927649 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Fri, 17 Apr 2026 08:40:33 +0200 Subject: [PATCH] add docker-cli and set correct column lengh in terminal --- Dockerfile | 2 +- entrypoint-script/variables.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 01705c2..de7d2b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV TZ="" RUN apk add --no-cache \ bash sudo openssh-server shadow tzdata curl git dcron coreutils grep sed gawk util-linux ca-certificates tmux fastfetch prometheus-node-exporter \ - borgbackup \ + borgbackup docker-cli \ && mkdir -p \ /.ssh \ /backups \ diff --git a/entrypoint-script/variables.sh b/entrypoint-script/variables.sh index 770abaa..f5a6eae 100644 --- a/entrypoint-script/variables.sh +++ b/entrypoint-script/variables.sh @@ -10,7 +10,8 @@ function sepurator { if [ -n "${2:-}" ]; then local end="$2" else - local end="$COLUMNS" + local end + end=$(tput cols 2>/dev/null || echo "${COLUMNS:-80}") fi local start=1