lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master b978a73 4/8: Restrict $PATH to a hardcoded mi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b978a73 4/8: Restrict $PATH to a hardcoded minimum in 'install_msw.sh'
Date: Wed, 17 Apr 2019 06:20:19 -0400 (EDT)

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

    Restrict $PATH to a hardcoded minimum in 'install_msw.sh'
---
 install_msw.sh | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/install_msw.sh b/install_msw.sh
index d500c18..41c5d04 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -34,6 +34,10 @@ set -vx
 stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
 echo "Started: $stamp0"
 
+# This should work with a rather minimal path.
+minimal_path="/usr/bin:/bin:/usr/sbin:/sbin"
+export PATH=$minimal_path
+
 # '--jobs=4': big benefit for multicore, no penalty for single core
 #   (but don't force it to 4 if it's already set).
 # '--output-sync=recurse' is also used, passim, to facilitate log
@@ -205,13 +209,12 @@ fi
 
 find /cache_for_lmi/downloads -type f | xargs md5sum
 
-export         PATH=/opt/lmi/local/bin:/opt/lmi/local/lib:$PATH
-export 
minimal_path=/opt/lmi/local/bin:/opt/lmi/local/lib:/usr/bin:/bin:/usr/sbin:/sbin
+export PATH=/opt/lmi/local/bin:/opt/lmi/local/lib:$minimal_path
 
-make $coefficiency --output-sync=recurse PATH=$minimal_path wx_config_check
-make $coefficiency --output-sync=recurse PATH=$minimal_path show_flags
-make $coefficiency --output-sync=recurse PATH=$minimal_path clean
-make $coefficiency --output-sync=recurse PATH=$minimal_path install
+make $coefficiency --output-sync=recurse wx_config_check
+make $coefficiency --output-sync=recurse show_flags
+make $coefficiency --output-sync=recurse clean
+make $coefficiency --output-sync=recurse install
 
 if [ "Cygwin" = "$platform" ]
 then



reply via email to

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