Do not destroy symlinks with sed

This commit is contained in:
Mikhail f. Shiryaev 2023-02-17 18:39:09 +01:00
parent 0b6f632584
commit 1565f2c233
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -8,4 +8,4 @@ GIT_ROOT=${GIT_ROOT:-.}
VERSION=$(sed -e '1 s/^v//; 1 s/-.*//p; d' "$GIT_ROOT"/utils/list-versions/version_date.tsv)
find "$GIT_ROOT/docker/keeper/" "$GIT_ROOT/docker/server/" -name 'Dockerfile.*' -print0 | \
xargs -0 sed -i "/^ARG VERSION=/ s/^.*$/ARG VERSION=\"$VERSION\"/"
xargs -0 sed -i --follow-symlinks "/^ARG VERSION=/ s/^.*$/ARG VERSION=\"$VERSION\"/"