From c332e36cf5525aa2e1ac36525fb7b11d2cbc3666 Mon Sep 17 00:00:00 2001 From: Dmitrii Kuvaiskii Date: Wed, 1 Jun 2022 10:02:24 -0700 Subject: [PATCH] Remove `set -x` from `apploader.sh` entrypoint script It printed all executed steps and commands by the shell script, which is unneeded for normal user. Kept only for debug environments. Signed-off-by: Dmitrii Kuvaiskii --- templates/apploader.common.template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/apploader.common.template b/templates/apploader.common.template index b6ab2d5a..ccc0e410 100644 --- a/templates/apploader.common.template +++ b/templates/apploader.common.template @@ -1,6 +1,9 @@ #!/usr/bin/env bash -set -ex +{% if debug %} +set -x +{% endif %} +set -e # Export distro-specific paths (typically `PYTHONPATH` and `PKG_CONFIG_PATH`) {% block path %}{% endblock %} @@ -8,7 +11,7 @@ set -ex # Default to Linux-SGX if no PAL was specified if [ -z "$GSC_PAL" ] || [ "$GSC_PAL" == "Linux-SGX" ] then - gramine-sgx-get-token --sig /entrypoint.sig --output /entrypoint.token + gramine-sgx-get-token --quiet --sig /entrypoint.sig --output /entrypoint.token gramine-sgx /entrypoint {% if insecure_args %}{{binary_arguments}} "${@}"{% endif %} else gramine-direct /entrypoint {{binary_arguments}} "${@}"