mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
[skip-ci] Packit: Fix action script for fetching upstream commit
This fixes multiple trailing quotes after the commit and also ensures the older commit id will be correctly replaced by the newer id. Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
@ -14,4 +14,4 @@ SPEC_FILE=rpm/$PACKAGE.spec
|
||||
GIT_COMMIT=$(git rev-parse HEAD)
|
||||
|
||||
# Update LDFLAGS to show commit id for Copr builds
|
||||
sed -i "s/^GIT_COMMIT=*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE
|
||||
sed -i "s/^GIT_COMMIT=.*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE
|
||||
|
Reference in New Issue
Block a user