]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
test/atomicity: use a more portable 'cp' form
authorMike Kelly <pioto@pioto.org>
Wed, 30 May 2012 07:02:03 +0000 (03:02 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Sep 2012 02:17:10 +0000 (23:17 -0300)
-a already implies -r/-R, so no need for both.

FreeBSD's cp complains:

  cp: the -R and -r options may not be specified together

test/atomicity

index 6df0a00e4084281c9b03027668ff2e0ca38bf15a..1c786fa2724262dad40cc9f7b883b6269586bc1d 100755 (executable)
@@ -51,7 +51,7 @@ if test_require_external_prereq gdb; then
 
     # Prepare a snapshot of the updated maildir.  The gdb script will
     # update the database in this snapshot as it goes.
-    cp -ra $MAIL_DIR $MAIL_DIR.snap
+    cp -a $MAIL_DIR $MAIL_DIR.snap
     cp ${NOTMUCH_CONFIG} ${NOTMUCH_CONFIG}.snap
     NOTMUCH_CONFIG=${NOTMUCH_CONFIG}.snap notmuch config set database.path $MAIL_DIR.snap