From 5240df9b51abf39133b2700087054b427ff6cd13 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 7 Apr 2020 00:12:40 +0200 Subject: [PATCH] main: just write inventory --- main.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index 4d9723c..dd1a727 100755 --- a/main.sh +++ b/main.sh @@ -36,8 +36,9 @@ if test -n "$options"; then fi if test -n "$inventory"; then - echo "==> Writing inventory with custom content:" - echo -e "$inventory" | tee "$inventory_file" + echo "==> Setting inventory" + echo "$inventory" > "$inventory_file" + cat $inventory_file options="$options --inventory $inventory_file" fi