lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 31dd5e1 3/5: Replace 'cp' with 'install' for


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 31dd5e1 3/5: Replace 'cp' with 'install' for graphics files
Date: Sat, 13 Jun 2020 17:37:02 -0400 (EDT)

branch: master
commit 31dd5e1b855df8c9e797c767a9ae0cb9795d06b7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Replace 'cp' with 'install' for graphics files
    
    The '--archive' flag had been specified merely out of habit, and was
    unnecessary.
---
 install_msw.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/install_msw.sh b/install_msw.sh
index adca06f..362ee96 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -328,9 +328,9 @@ graphics_dir_0=/opt/lmi/proprietary/graphics
 graphics_dir_1=/opt/lmi/src/lmi/gwc
 for z in company_logo.png group_quote_banner.png ; do
   if   [ -f "$graphics_dir_0"/$z ]
-    then cp --archive "$graphics_dir_0"/$z /opt/lmi/data/
+    then install -m 0664 "$graphics_dir_0"/$z /opt/lmi/data/
   elif [ -f "$graphics_dir_1"/$z ]
-    then cp --archive "$graphics_dir_1"/$z /opt/lmi/data/
+    then install -m 0664 "$graphics_dir_1"/$z /opt/lmi/data/
   else
     printf 'Graphics files not found.\n'
   fi



reply via email to

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