From d25fa924196f4f9c6a4b7db7c389139cbe9a2ef2 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 8 Sep 2013 14:29:47 +0200 Subject: Fix issue with non-existing files in local-generator. --- system-generators/gentoo-local-generator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system-generators/gentoo-local-generator b/system-generators/gentoo-local-generator index 42889dc..a6b3f5f 100755 --- a/system-generators/gentoo-local-generator +++ b/system-generators/gentoo-local-generator @@ -10,6 +10,9 @@ mkdir -p "${svc_dir}" "${wan_dir}" || exit 1 previous= for f in *.start *.stop; do + # omit non-existing files ('*.start' when glob doesn't match) + [ -f "${f}" ] || continue + case "${f}" in *.start) is_start=1 -- cgit v1.2.3-65-gdbad