lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master e1ef5db 1/2: Invoke 'check_git_setup.sh' and


From: Greg Chicares
Subject: [lmi-commits] [lmi] master e1ef5db 1/2: Invoke 'check_git_setup.sh' and appropriate some of its logic
Date: Mon, 16 Apr 2018 10:56:49 -0400 (EDT)

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

    Invoke 'check_git_setup.sh' and appropriate some of its logic
---
 install_msw.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/install_msw.sh b/install_msw.sh
index d9cdfea..a9c0905 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -43,14 +43,12 @@ then
     export coefficiency='--jobs=4'
 fi
 
-# SOMEDAY !! After testing 'check_git_setup.sh' thoroughly, use its
-# 'case' statement here instead of this 'expr substr' thing.
-
 export platform
-if [ "$(expr substr $(uname -s) 1 6)" = "CYGWIN" ]
-then
-    platform=CYGWIN
-fi
+case $(uname) in
+    CYGWIN*)
+        platform=CYGWIN
+        ;;
+esac
 
 if [ "CYGWIN" = "$platform" ]
 then
@@ -137,6 +135,8 @@ git clone git://git.savannah.nongnu.org/lmi.git \
 
 cd /opt/lmi/src/lmi || print "Cannot cd"
 
+./check_git_setup.sh
+
 if [ "CYGWIN" = "$platform" ]
 then
     # A "Replacing former [...] mount:" message probably means that this



reply via email to

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