diff --git a/src/deploymentMenu.ts b/src/deploymentMenu.ts index c9d8fd7..84dd62a 100644 --- a/src/deploymentMenu.ts +++ b/src/deploymentMenu.ts @@ -394,7 +394,9 @@ async function createChildsForm( deployDialog.appendChild(form); // Show the form for the first child by default - if (index !== 0) form.style.display = 'none'; + if (index !== 0) { + form.style.display = 'none'; + } // Create input fields from YAML content if (inputs) { diff --git a/src/listDeployments.ts b/src/listDeployments.ts index 029b8c7..02995e0 100644 --- a/src/listDeployments.ts +++ b/src/listDeployments.ts @@ -258,18 +258,18 @@ async function getInfrastructureInfo( echo -e "${authContent}" > $PWD/${pipeAuth} & if [ "${dataType}" = "state" ]; then - stateOut=\$(python3 ${imClientPath} getstate ${infrastructureID} -r https://im.egi.eu/im -a \$PWD/${pipeAuth}) + stateOut=(python3 ${imClientPath} getstate ${infrastructureID} -r https://im.egi.eu/im -a PWD/${pipeAuth}) else - stateOut=\$(python3 ${imClientPath} getvminfo ${infrastructureID} 0 net_interface.1.ip -r https://im.egi.eu/im -a \$PWD/${pipeAuth}) + stateOut=(python3 ${imClientPath} getvminfo ${infrastructureID} 0 net_interface.1.ip -r https://im.egi.eu/im -a PWD/${pipeAuth}) fi # Remove pipe rm -f $PWD/${pipeAuth} &> /dev/null # Print state output on stderr or stdout if [ $? -ne 0 ]; then - >&2 echo -e \$stateOut + >&2 echo -e stateOut exit 1 else - echo -e \$stateOut + echo -e stateOut fi `;