From b5bf70962ce5de71c6f050d186534b357f2878fc Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 26 Jun 2026 18:39:55 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20duplicate=202>/dev/null=20?= =?UTF-8?q?in=20entrypoint.sh=20/etc/hosts=20line=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The grep -vF line that appends /usr/local/etc/hosts entries had a duplicate 2>/dev/null redirect after the append operator, which is a no-op but clutters the script. Synced from template. - rootfs/usr/local/bin/entrypoint.sh: remove duplicate 2>/dev/null from grep -vF /etc/hosts append line; bump version to 202606261500-git rootfs/usr/local/bin/entrypoint.sh --- rootfs/usr/local/bin/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index cdd933d..75aa58d 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # shellcheck shell=bash # - - - - - - - - - - - - - - - - - - - - - - - - - -##@Version : 202605241245-git +##@Version : 202606261500-git # @@Author : Jason Hempstead # @@Contact : jason@casjaysdev.pro # @@License : WTFPL @@ -373,7 +373,7 @@ if [ "$ENTRYPOINT_FIRST_RUN" != "no" ]; then # - - - - - - - - - - - - - - - - - - - - - - - - - # import hosts file into container if [ -f "/usr/local/etc/hosts" ] && [ "$UPDATE_FILE_HOSTS" = "yes" ]; then - grep -vF "$HOSTNAME" "/usr/local/etc/hosts" 2>/dev/null >>"/etc/hosts" 2>/dev/null || true + grep -vF "$HOSTNAME" "/usr/local/etc/hosts" 2>/dev/null >>"/etc/hosts" || true fi # - - - - - - - - - - - - - - - - - - - - - - - - - # import resolv.conf file into container