k8up-io / k8up

Kubernetes and OpenShift Backup Operator
https://k8up.io/
Apache License 2.0
717 stars 66 forks source link

fix(restic): Don't set `--options` if there are none #1013

Open mhutter opened 1 month ago

mhutter commented 1 month ago

Calling strings.Split on an empty string still returns a slice with one empty string in it, hence setting options.

This commit changes the implementation to first check for empty strings, before even calling strings.Split.

Checklist

For Code changes