]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/debian/link_morgue.sh
And check for existance, not type too
[dak.git] / scripts / debian / link_morgue.sh
index b4dec5320bc7275107ad1dd8ef915cf726623ccb..0dc693be845fd6755af0602adc784e8509b8c93f 100755 (executable)
@@ -85,7 +85,7 @@ cd "${PROCESSDIR}"
 log "Processing ${PROCESSDIR}"
 find ${PROCESSDIR} -type f |
 while read mfile; do
-    if [[ -f ${mfile}.nosnapshot ]]; then
+    if [[ -e ${mfile}.nosnapshot ]]; then
         # We know this file does not exist on snapshot, don't check again
         continue
     fi
@@ -117,7 +117,7 @@ while read mfile; do
             # will run and transfer the whole shitload of links over to the morgue host.
             ln -sf "${FARMBASE}/${LVL1}/${LVL2}/${mshasum}" "${mfile}"
         else
-            touch "${mfile}.nosnapshot"
+            touch "${mfile}.nosnapshot" || true
         fi
     fi
 done # for mfile in...