mirror of
https://github.com/casjaysdevdocker/python
synced 2026-07-25 08:11:38 -04:00
🐛 Fix duplicate 2>/dev/null in entrypoint.sh /etc/hosts line 🐛
python-3.12 / release-python-3_12 (push) Failing after 1m23s
python / release-python (push) Failing after 12m24s
python-3 / release-python-3 (push) Failing after 12m39s
release-tag / release-image (push) Failing after 12m45s
python-3.9 / release-python-3_9 (push) Failing after 12m55s
python-3.13 / release-python-3_13 (push) Failing after 13m4s
python-3.11 / release-python-3_11 (push) Failing after 13m11s
python-3.10 / release-python-3_10 (push) Failing after 13m15s
python-3.12 / release-python-3_12 (push) Failing after 1m23s
python / release-python (push) Failing after 12m24s
python-3 / release-python-3 (push) Failing after 12m39s
release-tag / release-image (push) Failing after 12m45s
python-3.9 / release-python-3_9 (push) Failing after 12m55s
python-3.13 / release-python-3_13 (push) Failing after 13m4s
python-3.11 / release-python-3_11 (push) Failing after 13m11s
python-3.10 / release-python-3_10 (push) Failing after 13m15s
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
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck shell=bash
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
##@Version : 202602061352-git
|
||||
##@Version : 202606261500-git
|
||||
# @@Author : Jason Hempstead
|
||||
# @@Contact : jason@casjaysdev.pro
|
||||
# @@License : WTFPL
|
||||
@@ -367,7 +367,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
|
||||
|
||||
Reference in New Issue
Block a user