From 4adcb736f03ea62a406190f29f5584f64ea20199 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 25 Sep 2018 19:28:48 +0200 Subject: don't queue nonexistant --- custom/uucp-mediaserver/scripts/queue | 5 +++++ 1 file changed, 5 insertions(+) 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 for f (${@}); do f=$(readlink -f ${f}) + if [[ ! -f ${f} ]]; then + printf "ā€˜%sā€™ is not a regular file\n" ${f:t} | warn + continue + fi + if grep -q ${f} @queueDir@/${suffix}.queue; then printf "ā€˜%sā€™ is already in queue file\n" ${f:t} | warn continue -- cgit v1.2.3