Initialise options variable to avoid unset variable expansion #351

Merged
nico merged 1 commit from mark/cdist:options-initialise into master 2022-12-20 17:04:47 +00:00

View file

@ -21,6 +21,7 @@
name="$__object_id"
state="$(cat "$__object/parameter/state")"
uri="$(cat "$__object/parameter/uri")"
options=""
if [ -f "$__object/parameter/distribution" ]; then
distribution="$(cat "$__object/parameter/distribution")"