]> git.decadent.org.uk Git - dak.git/commitdiff
scripts/debian/moveftp.sh: use mv --no-clobber
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 1 Aug 2014 16:21:09 +0000 (18:21 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 1 Aug 2014 16:21:09 +0000 (18:21 +0200)
scripts/debian/moveftp.sh

index 816febc6188329a3a2051917b327664b30e7a266..7af638a05d1bdcb19e448b7b0d32b203208fdf61 100755 (executable)
@@ -6,4 +6,4 @@ set -u
 FTPDIR="/srv/upload.debian.org/ftp/pub/UploadQueue/"
 SSHDIR="/srv/upload.debian.org/UploadQueue/"
 
-yes n | find ${FTPDIR} -type f -mmin +15 -print0 -exec mv -i --target-directory=${SSHDIR} "{}" +
+find ${FTPDIR} -type f -mmin +15 -print0 -exec mv --no-clobber --target-directory=${SSHDIR} -- "{}" +