From 5fa80c8aaa7dc70d614fda3e8b9d10402832185c Mon Sep 17 00:00:00 2001 From: "Xianwu.Xue" Date: Wed, 6 Apr 2022 21:06:04 -0400 Subject: [PATCH] Initialize "err" to avoid potential task fail If not initialize err, and change "set -x" to "set -xue", then the waveinit task will fail with error message: "line 234: err: unbound variable" On branch bugfix/issue_714 Changes to be committed: modified: scripts/exgfs_wave_init.sh Refs: #714 --- scripts/exgfs_wave_init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/exgfs_wave_init.sh b/scripts/exgfs_wave_init.sh index 536ff65d54..ec3e9443b2 100755 --- a/scripts/exgfs_wave_init.sh +++ b/scripts/exgfs_wave_init.sh @@ -29,6 +29,8 @@ # 0.a Basic modes of operation set -x + + err=0 # Use LOUD variable to turn on/off trace. Defaults to YES (on). export LOUD=${LOUD:-YES}; [[ $LOUD = yes ]] && export LOUD=YES [[ "$LOUD" != YES ]] && set +x