From 03b8169401cb983143797c4ec6fcbba7ff74bca4 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 25 Oct 2025 15:38:12 -0700 Subject: [PATCH] Try adding the output to the files in a different way. --- setup.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/setup.sh b/setup.sh index 8c70a3c..3f7345f 100755 --- a/setup.sh +++ b/setup.sh @@ -140,10 +140,8 @@ if [[ -n "$create_general" && ! -f "$general_config" ]]; then ; TEST DATA EOF } - print_general_contents # FORTEST - print_general_contents > "$general_config" + print_general_contents | sudo tee "$general_config" ls -lh "$general_config" - cat "$general_config" fi if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then function print_workstation_contents { @@ -156,10 +154,8 @@ if [[ -n "$create_workstation" && ! -f "$workstation_config" ]]; then ; TEST DATA EOF } - print_workstation_contents # FORTEST - print_workstation_contents > "$workstation_config" + print_workstation_contents | sudo tee "$workstation_config" ls -lh "$workstation_config" - cat "$workstation_config" fi if [[ -n "$create_server" && ! -f "$server_config" ]]; then function print_server_contents { @@ -169,10 +165,8 @@ if [[ -n "$create_server" && ! -f "$server_config" ]]; then ; TEST DATA EOF } - print_server_contents # FORTEST - print_server_contents > "$server_config" + print_server_contents | sudo tee "$server_config" ls -lh "$server_config" - cat "$server_config" fi echo "Provisioning Ansible..."