diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-25 19:28:48 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-25 19:28:48 +0200 |
commit | 4adcb736f03ea62a406190f29f5584f64ea20199 (patch) | |
tree | d6514520b0f305ad1e45318e6de3cf066bbbc046 | |
parent | ec33ad4fcd7b03b821ef1b08942243ffc047f850 (diff) | |
download | nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.gz nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.bz2 nixos-4adcb736f03ea62a406190f29f5584f64ea20199.tar.xz nixos-4adcb736f03ea62a406190f29f5584f64ea20199.zip |
don't queue nonexistant
-rwxr-xr-x | custom/uucp-mediaserver/scripts/queue | 5 |
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 | ||
59 | for f (${@}); do | 59 | for 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 |