diff options
author | 2013-09-08 14:29:47 +0200 | |
---|---|---|
committer | 2013-09-08 14:29:47 +0200 | |
commit | d25fa924196f4f9c6a4b7db7c389139cbe9a2ef2 (patch) | |
tree | ed2012b8255a83bae7659f87b4621295765df261 | |
parent | Use SYSTEMD_SYSTEMGENERATORDIR. (diff) | |
download | gentoo-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-x | system-generators/gentoo-local-generator | 3 |
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 |