Skip to content
Snippets Groups Projects
Commit 0124e8c2 authored by Max Leonard Inden's avatar Max Leonard Inden
Browse files

contrib/kube-prometheus: add `-f` to `rm` in `build.sh`

According to the man pages of `rm` and the `-f` option:
> Attempt to remove the files without prompting for confirma- tion,
> regardless of the file's permissions.  If the file does not exist, do
> not display a diagnostic message or modify the exit status to reflect an
> error.  The -f option overrides any previous -i options.

This patch prevents the `build.sh` script from failing if files do not
exist when attempting to delete them.
parent a9e667d2
No related branches found
No related tags found
No related merge requests found
...@@ -3,5 +3,5 @@ set -e ...@@ -3,5 +3,5 @@ set -e
set -x set -x
# optional, but we would like to generate yaml, not json # optional, but we would like to generate yaml, not json
jsonnet -J vendor -m manifests example.jsonnet | xargs -I{} sh -c 'cat $1 | gojsontoyaml > $1.yaml; rm $1' -- {} jsonnet -J vendor -m manifests example.jsonnet | xargs -I{} sh -c 'cat $1 | gojsontoyaml > $1.yaml; rm -f $1' -- {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment