Skip to content

Commit

Permalink
Remove set -x from apploader.sh entrypoint script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dimakuv committed Jun 1, 2022
1 parent 8905d7f commit c332e36
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/apploader.common.template
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/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 %}

# 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}} "${@}"
Expand Down

0 comments on commit c332e36

Please sign in to comment.