summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-09-08 14:29:47 +0200
committerMichał Górny <mgorny@gentoo.org>2013-09-08 14:29:47 +0200
commitd25fa924196f4f9c6a4b7db7c389139cbe9a2ef2 (patch)
treeed2012b8255a83bae7659f87b4621295765df261
parentUse SYSTEMD_SYSTEMGENERATORDIR. (diff)
downloadgentoo-systemd-integration-d25fa924196f4f9c6a4b7db7c389139cbe9a2ef2.tar.gz
gentoo-systemd-integration-d25fa924196f4f9c6a4b7db7c389139cbe9a2ef2.tar.bz2
gentoo-systemd-integration-d25fa924196f4f9c6a4b7db7c389139cbe9a2ef2.zip
Fix issue with non-existing files in local-generator.
-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