Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit a3cb07d

Browse files
Fixed path for sed(1).
Some distros provide it in /bin/sed and others in both /bin/sed and /usr/bin/sed. Use the more available one. Reported-by: Konstantin Pavlov <thresh@nginx.com> Fixes: ac64ffd "Improved readability of <docker-entrypoint.sh>." Signed-off-by: Alejandro Colomar <alx@nginx.com>
1 parent ac64ffd commit a3cb07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/docker/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
curl_put()
66
{
77
RET=$(/usr/bin/curl -s -w '%{http_code}' -X PUT --data-binary @$1 --unix-socket /var/run/control.unit.sock http://localhost/$2)
8-
RET_BODY=$(echo $RET | /usr/bin/sed '$ s/...$//')
8+
RET_BODY=$(echo $RET | /bin/sed '$ s/...$//')
99
RET_STATUS=$(echo $RET | /usr/bin/tail -c 4)
1010
if [ "$RET_STATUS" -ne "200" ]; then
1111
echo "$0: Error: HTTP response status code is '$RET_STATUS'"

0 commit comments

Comments
 (0)