[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/source_script_in_makefile 2b6d26d 6/8: Don't wri
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/source_script_in_makefile 2b6d26d 6/8: Don't write env file if its name is empty or unset |
Date: |
Fri, 17 May 2019 21:31:38 -0400 (EDT) |
branch: odd/source_script_in_makefile
commit 2b6d26d5dd763b636680c9998bae51bf9e2f2991
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Don't write env file if its name is empty or unset
---
set.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/set.sh b/set.sh
index 8e944d0..73e2f1d 100755
--- a/set.sh
+++ b/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
- [lmi-commits] [lmi] odd/source_script_in_makefile updated (929fccb -> dcfc8bb), Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile fc9727f 1/8: Construct a unique temporary filename to avoid collisions, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile 3722813 3/8: Resolve an open issue, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile 2b6d26d 6/8: Don't write env file if its name is empty or unset,
Greg Chicares <=
- [lmi-commits] [lmi] odd/source_script_in_makefile 20d830d 4/8: Name temporary environment-variables file OAOO, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile 2bf1d5d 7/8: Remove duplicated target name; improve documentation, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile dcfc8bb 8/8: Improve and compress output trace, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile 42d1373 2/8: Remove obsolete commentary, Greg Chicares, 2019/05/17
- [lmi-commits] [lmi] odd/source_script_in_makefile 23a86bd 5/8: Actually perform some work in the script, Greg Chicares, 2019/05/17