]> arthur.barton.de Git - ConfigScripts.git/commitdiff
install.sh: Try to preserve timestamps
authorAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:16:23 +0000 (16:16 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 22 Nov 2013 15:16:23 +0000 (16:16 +0100)
install.sh

index 1018e61ad49b41c61946acebc9166479e950735f..6e85bee34246b1187da759e1cec1163f7fc3b382 100755 (executable)
@@ -26,8 +26,8 @@ Copy_File() {
                fi
        fi
        Msg " "
-       cp "$src" "$dst" || Abort
-       if [ -n "$own" -a "$own" != "$USER" ]; then
+       cp --preserve=timestamps "$src" "$dst" || Abort
+       if [ -n "$own" ]; then
                chown "$own" "$dst" || Abort
        fi
        if [ -n "$perm" ]; then