summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsystem-generators/gentoo-local-generator3
1 files changed, 3 insertions, 0 deletions
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