diff --git a/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh b/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh index 38a6778e9ba..22d4dd94f24 100644 --- a/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh +++ b/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh @@ -20,6 +20,7 @@ command -v wget >/dev/null 2>&1 && WGET_INSTALLED=true # no curl, no wget, install curl if [ ${CURL_INSTALLED} = false ] && [ ${WGET_INSTALLED} = false ]; then PACKAGES=${PACKAGES}" curl"; + CURL_INSTALLED=true fi test "$(id -u)" = 0 || SUDO="sudo -E" diff --git a/agents/terminal/src/main/resources/org.eclipse.che.terminal.script.sh b/agents/terminal/src/main/resources/org.eclipse.che.terminal.script.sh index 435350e57b5..70bc8310f09 100644 --- a/agents/terminal/src/main/resources/org.eclipse.che.terminal.script.sh +++ b/agents/terminal/src/main/resources/org.eclipse.che.terminal.script.sh @@ -20,6 +20,7 @@ command -v wget >/dev/null 2>&1 && WGET_INSTALLED=true # no curl, no wget, install curl if [ ${CURL_INSTALLED} = false ] && [ ${WGET_INSTALLED} = false ]; then PACKAGES=${PACKAGES}" curl"; + CURL_INSTALLED=true fi test "$(id -u)" = 0 || SUDO="sudo -E" diff --git a/wsagent/agent/src/main/resources/org.eclipse.che.ws-agent.script.sh b/wsagent/agent/src/main/resources/org.eclipse.che.ws-agent.script.sh index 4da6ab73b27..ad6d4e4a604 100644 --- a/wsagent/agent/src/main/resources/org.eclipse.che.ws-agent.script.sh +++ b/wsagent/agent/src/main/resources/org.eclipse.che.ws-agent.script.sh @@ -20,6 +20,7 @@ command -v wget >/dev/null 2>&1 && WGET_INSTALLED=true # no curl, no wget, install curl if [ ${CURL_INSTALLED} = false ] && [ ${WGET_INSTALLED} = false ]; then PACKAGES=${PACKAGES}" curl"; + CURL_INSTALLED=true fi test "$(id -u)" = 0 || SUDO="sudo -E"