mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
tools/fix-spec: use word boundry for version number replacement
This commit is contained in:
parent
6500da89ec
commit
561b86b507
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ PROVIDES=$(awk '{print "Provides: bundled(npm(" $1 ")) = " $2}' "${ROOT_DIR}/run
|
|||
awk -v p="$PROVIDES" 'gsub(/#NPM_PROVIDES/, p) 1' "$spec" > "$spec".new
|
||||
|
||||
if [ -n "$version" ]; then
|
||||
sed -i '/Version/ s/0/'"$version"'/' "$spec".new
|
||||
sed -i '/Version/ s/\b0\b/'"$version"'/' "$spec".new
|
||||
fi
|
||||
|
||||
mv -f "$spec".new "$spec"
|
||||
|
|
|
|||
Loading…
Reference in a new issue