Skip to content

Commit

Permalink
init: fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Mar 11, 2024
1 parent 609c053 commit 4a51a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -2133,13 +2133,13 @@ if [ "${init}" -eq 0 ]; then

id="$(hostname)"
if [ -e /run/.containerenv ]; then
# shellcheck disable=SC1091,SC2034
. /run/.containerenv
elif [ -e /.dockerenv ]; then
id="$(curl -s --unix-socket /run/docker.sock http://docker/containers/"$(hostname | cut -d'.' -f1)"/json |
grep -Eo '"Id":"[a-zA-Z0-9]{64}",' | cut -d '"' -f4)"
fi

findmnt -no SOURCE /etc/resolv.conf | grep "${id}" || :
# disable verbose logging for this phase.
set +x
while true; do
Expand Down

0 comments on commit 4a51a29

Please sign in to comment.