lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 0ca7d61 09/16: Don't write env file if its na


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0ca7d61 09/16: Don't write env file if its name is empty or unset
Date: Sat, 18 May 2019 20:53:36 -0400 (EDT)

branch: master
commit 0ca7d612dfb2cbe943c44643da1b5eee4a9c3fd3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Don't write env file if its name is empty or unset
---
 gwc/set.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gwc/set.sh b/gwc/set.sh
index 8e944d0..73e2f1d 100755
--- a/gwc/set.sh
+++ b/gwc/set.sh
@@ -19,10 +19,12 @@ esac
 
 echo "LMI_OUT1 leaving 'set.sh': $LMI_OUT1"
 echo "LMI_OUT2 leaving 'set.sh': $LMI_OUT2"
-{
+if [ -n "$LMI_ENV_FILE" ]; then
+    {
     echo "export LMI_OUT1 := $LMI_OUT1"
     echo "export LMI_OUT2 := $LMI_OUT2"
-} > "$LMI_ENV_FILE"
+    } > "$LMI_ENV_FILE"
+fi
 }
 
 foo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]