aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sdks/agl
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-09-18 18:22:10 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-09-18 18:22:10 +0200
commitbfd581e801a38b096adbfa641f2b1f0100872a8a (patch)
tree38e252ceb70e6b2139aa81dec3344fc17af8566d /scripts/sdks/agl
parent7fb08b4791214b648175d19ce14fa297b4ea2e16 (diff)
Filter output of environment
Remove functions (using set -o posix) and values contaning new lines. Without that change on some environment, the script scripts/sdks/agl/db-dump may fail line 51 Change-Id: I5118c0054d50ab3c7ac2757aff820adec2584cb3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'scripts/sdks/agl')
-rwxr-xr-xscripts/sdks/agl/_env-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sdks/agl/_env-init.sh b/scripts/sdks/agl/_env-init.sh
index 921f319..9b92d56 100755
--- a/scripts/sdks/agl/_env-init.sh
+++ b/scripts/sdks/agl/_env-init.sh
@@ -29,4 +29,4 @@ export SDK_ROOT_DIR="$XDT_SDK"
export SDK_ENV_SETUP_FILENAME="environment-setup-*"
export SDK_DATABASE="http://iot.bzh/download/public/XDS/sdk/sdks_latest.json"
-[ "$1" = "-print" ] && { env; }
+[ "$1" = "-print" ] && ( set -o posix; set | grep '[A-Za-z0-9_]\{1,\}='; )