main: just write inventory

This commit is contained in:
Dawid Dziurla 2020-04-07 00:12:40 +02:00 committed by GitHub
parent bfdba4708c
commit 5240df9b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,9 @@ if test -n "$options"; then
fi fi
if test -n "$inventory"; then if test -n "$inventory"; then
echo "==> Writing inventory with custom content:" echo "==> Setting inventory"
echo -e "$inventory" | tee "$inventory_file" echo "$inventory" > "$inventory_file"
cat $inventory_file
options="$options --inventory $inventory_file" options="$options --inventory $inventory_file"
fi fi