[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c34288b 2/2: Use 'cp'+'rm' where 'mv' fails
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c34288b 2/2: Use 'cp'+'rm' where 'mv' fails |
Date: |
Wed, 11 Apr 2018 04:49:02 -0400 (EDT) |
branch: master
commit c34288bf1599dde1303fd29ff952ba0a751bf381
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Use 'cp'+'rm' where 'mv' fails
See:
https://lists.nongnu.org/archive/html/lmi/2018-04/msg00049.html
---
install_msw.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/install_msw.sh b/install_msw.sh
index ad1abea..d9cdfea 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -124,7 +124,8 @@ cd /opt/lmi/src || print "Cannot cd"
# Preserve any preexisting source directory, moving it aside so that
# 'git clone' will install a pristine working copy.
-mv lmi lmi-moved-"$stamp0"
+cp --archive lmi lmi-moved-"$stamp0"
+rm -rf /opt/lmi/src/lmi
# Use git's own protocol wherever possible. In case that's blocked
# by a corporate firewall, fall back on https. In case a firewall