summaryrefslogtreecommitdiff
path: root/custom/uucp-mediaserver/scripts/queue
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-25 19:28:48 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-25 19:28:48 +0200
commit4adcb736f03ea62a406190f29f5584f64ea20199 (patch)
treed6514520b0f305ad1e45318e6de3cf066bbbc046 /custom/uucp-mediaserver/scripts/queue
parentec33ad4fcd7b03b821ef1b08942243ffc047f850 (diff)
downloadnixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar
nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.gz
nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.bz2
nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.xz
nixos-4adcb736f03ea62a406190f29f5584f64ea20199.zip
don't queue nonexistant
Diffstat (limited to 'custom/uucp-mediaserver/scripts/queue')
-rwxr-xr-xcustom/uucp-mediaserver/scripts/queue5
1 files changed, 5 insertions, 0 deletions
diff --git a/custom/uucp-mediaserver/scripts/queue b/custom/uucp-mediaserver/scripts/queue
index a9b6bd47..0475c184 100755
--- a/custom/uucp-mediaserver/scripts/queue
+++ b/custom/uucp-mediaserver/scripts/queue
@@ -58,6 +58,11 @@ printf "force: %d, noCall: %s, prepend: %s\n" ${force} ${noCall} ${prepend} | de
58 58
59for f (${@}); do 59for f (${@}); do
60 f=$(readlink -f ${f}) 60 f=$(readlink -f ${f})
61 if [[ ! -f ${f} ]]; then
62 printf "‘%s’ is not a regular file\n" ${f:t} | warn
63 continue
64 fi
65
61 if grep -q ${f} @queueDir@/${suffix}.queue; then 66 if grep -q ${f} @queueDir@/${suffix}.queue; then
62 printf "‘%s’ is already in queue file\n" ${f:t} | warn 67 printf "‘%s’ is already in queue file\n" ${f:t} | warn
63 continue 68 continue