From 774c95f06080796f6a36f69b1607a846ed8ffbd4 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Sat, 24 Sep 2022 20:12:42 -0300 Subject: [PATCH] fix: bash script -> curl caldera.sh -> Argumentos para curl sin "" --- scripts/caldera.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/caldera.sh b/scripts/caldera.sh index 784bdca..540411b 100755 --- a/scripts/caldera.sh +++ b/scripts/caldera.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -IP_CALDERA=$(grep URL esp_conf.cfg | cut -d'=' -f2) +IP_CALDERA="$(grep URL esp_conf.cfg | cut -d'=' -f2)" estado_caldera() { RESP=$(curl -s ${IP_CALDERA}) @@ -46,7 +46,7 @@ ejec_orden() { 6) ORD="/setlibre?1=6&2=${1}" ;; *) ORD="" ;; esac - curl -s "${IP_CALDERA}${ORD}" + curl ${IP_CALDERA}${ORD} } principal() { @@ -62,7 +62,7 @@ principal() { echo read -p " Ingresa Opcion :" OPC case ${OPC} in - "1") echo; curl -s "${IP_CALDERA}/auto" ;; + "1") echo; curl -s ${IP_CALDERA}'/auto' ;; "2") clear echo "============================"