[Pkg-owncloud-commits] [owncloud-doc] 33/80: Use find instead of ls to delete code files and directories.

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 02:54:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit d22faf3758325d08eeaf3bf85989bad462d0ab2e
Author: Andreas Fischer <bantu at owncloud.com>
Date:   Sun Jan 26 20:04:10 2014 +0100

    Use find instead of ls to delete code files and directories.
---
 admin_manual/maintenance/update.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin_manual/maintenance/update.rst b/admin_manual/maintenance/update.rst
index d6c434b..775cf54 100644
--- a/admin_manual/maintenance/update.rst
+++ b/admin_manual/maintenance/update.rst
@@ -39,7 +39,7 @@ To upgrade ownCloud, follow those steps:
 #. Delete everything from your ownCloud installation directory, except data and
    config. Assuming that it's your working directory, you could execute this command::
     
-    ls | grep -v 'data\|config' | xargs rm -r
+    find . -mindepth 1 -maxdepth 1 ! -path data ! -path config -exec rm -rf {} \;
 
 #. Unpack the release tarball in the ownCloud directory (or copy the
    files thereto). Assuming that your installation directory is called 'owncloud' and that it's inside your working

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list