Skip to content

Commit

Permalink
Improve os-release file processing (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored May 21, 2024
1 parent 804fe84 commit c7a7d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/etc/entrypoint.d/0-container-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ https://serversideup.net/sponsor
ℹ️ Container Information
-------------------------------------'
echo "
OS: $(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)
OS: $(source /etc/os-release; echo "${PRETTY_NAME}")
Docker user: $(whoami)
Docker uid: $(id -u "$(whoami)")
Docker gid: $(id -g "$(whoami)")
Expand All @@ -43,4 +43,4 @@ else
if [ "$LOG_OUTPUT_LEVEL" = "debug" ]; then
echo "👉 $script_name: DISABLE_DEFAULT_CONFIG does not equal \"false\", so debug mode will NOT be automatically set."
fi
fi
fi

0 comments on commit c7a7d1a

Please sign in to comment.