]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vcs-tag.sh: use portable sed argument order 40012/head
authorq66 <q66@chimera-linux.org>
Sat, 6 Dec 2025 16:59:09 +0000 (17:59 +0100)
committerq66 <q66@chimera-linux.org>
Mon, 8 Dec 2025 20:35:28 +0000 (21:35 +0100)
tools/vcs-tag.sh

index faec440f6b4b24a65f50b7c46234ba39a4f81141..a53b4efbd7a46da13d75ec7f53c588a83d4e4e5c 100755 (executable)
@@ -8,7 +8,7 @@ ENABLED="$3"
 
 if ! ((ENABLED)) || ! [[ -d .git ]] || ! command -v git >/dev/null || git describe --tags --exact-match &>/dev/null
 then
-    sed "$INPUT" -e "s/@VCS_TAG@//"
+    sed -e "s/@VCS_TAG@//" "$INPUT"
     exit 0
 fi
 
@@ -20,4 +20,4 @@ fi
 
 TAG="-g$(git describe --abbrev=7 --match="" --always $DIRTY)"
 
-sed "$INPUT" -e "s/@VCS_TAG@/$TAG/"
+sed -e "s/@VCS_TAG@/$TAG/" "$INPUT"