From 3c29f78fba418427044f08186ca80ce2c86e7023 Mon Sep 17 00:00:00 2001 From: luisgulo Date: Sat, 1 Nov 2025 22:15:45 +0100 Subject: Corrección rapida error VARIABLES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shflow.sh | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'shflow.sh') diff --git a/shflow.sh b/shflow.sh index f823f78..6eb9432 100755 --- a/shflow.sh +++ b/shflow.sh @@ -2,7 +2,7 @@ # ShFlow Playbook Runner # License: GPLv3 # Author: Luis GuLo -# Version: 1.8.0 +# Version: 1.8.2 set -euo pipefail @@ -197,15 +197,20 @@ run_for_host() { [[ "$HOST_IP" == "null" || -z "$HOST_IP" ]] && HOST_IP="$CURRENT_HOST" [[ "$LABEL" == "null" || -z "$LABEL" ]] && LABEL="$CURRENT_HOST" - echolog 1 "$(render_msg "${tr[host_info]:-🔧 Host: {host} ({ip})}" "host=$CURRENT_HOST" "ip=$HOST_IP")" - echolog 2 "$(render_msg "${tr[ssh_user]:-👤 Usuario SSH: {user}}" "user=$REMOTE_USER")" + #echolog 1 "$(render_msg "${tr[host_info]:-🔧 Host: {host} ({ip})}" "host=$CURRENT_HOST" "ip=$HOST_IP")" + #echolog 2 "$(render_msg "${tr[ssh_user]:-👤 Usuario SSH: {user}}" "user=$REMOTE_USER")" - # (Las tareas se ejecutarán en Parte 4) - } > "$output_buffer" 2>&1 + echo "$(render_msg "${tr[host_info]:-🔧 Host: {host} ({ip})}" "host=$CURRENT_HOST" "ip=$HOST_IP")" + echo "$(render_msg "${tr[ssh_user]:-👤 Usuario SSH: {user}}" "user=$REMOTE_USER")" - echo -e "\n🖥️ Host: $CURRENT_HOST\n$(cat "$output_buffer")" - rm -f "$output_buffer" -} + +# # (Las tareas se ejecutarán en Parte 4) +# } > "$output_buffer" 2>&1 + +echo "variable HOST: $HOST" +# echo -e "\n🖥️ Host: $CURRENT_HOST\n$(cat "$output_buffer")" +# rm -f "$output_buffer" +#} for ((i=0; i