lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/multiarch ec73fc6 11/16: Explicitly set $PERFORM


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/multiarch ec73fc6 11/16: Explicitly set $PERFORM even if it should be empty
Date: Wed, 10 Apr 2019 22:15:08 -0400 (EDT)

branch: odd/multiarch
commit ec73fc6372bd70c149694507c690ce0bd9679561
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Explicitly set $PERFORM even if it should be empty
    
    If $PERFORM previously had a value, and that value is no longer wanted,
    then it should be reset to empty.
    
    The same reasoning does not apply to $WINEPATH, because
      WINEPATH="whatever" apt-get update
    is harmless, whereas
      $PERFORM apt-get update
    must not expand to 'wine apt-get update'.
---
 set_arch.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/set_arch.sh b/set_arch.sh
index f4f305e..577a5f7 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -96,6 +96,9 @@ case "$LMI_BUILD" in
         export WINEPATH="$w0;$w1;$w2"
         export  PERFORM="wine"
         ;;
+    (*)
+        export PERFORM
+        ;;
 esac
 
 # export DO="PATH=$PATH WINEPATH=$WINEPATH $PERFORM"



reply via email to

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