tools/fix-spec: use `mv -f` to avoid prompts
When I run `make distcheck` locally I get: mv: replace 'cockpit-290+git/tools/cockpit.spec', overriding mode 0444 (r--r--r--)? add the `-f` option to avoid that.
This commit is contained in:
parent
b4d7dacac9
commit
92493367f8
|
@ -14,4 +14,4 @@ PROVIDES=$(npm ls --omit dev --package-lock-only --depth=Infinity |
|
|||
|
||||
|
||||
awk -v p="$PROVIDES" '/Version/ { gsub(/0/, "'$version'") }; gsub(/#NPM_PROVIDES/, p) 1' "$spec" > "$spec".new
|
||||
mv "$spec".new "$spec"
|
||||
mv -f "$spec".new "$spec"
|
||||
|
|
Loading…
Reference in New Issue