diff --git a/Makefile b/Makefile index c901529..50e8d71 100644 --- a/Makefile +++ b/Makefile @@ -170,8 +170,8 @@ db_services:: printf '\033[1mcollecting launchd service information...\033[m\n' >&2 echo 'DROP TABLE IF EXISTS services;' echo 'CREATE TABLE services (id INTEGER REFERENCES files, kind TEXT, plist JSON);' - $(call find,-type f -name '*.plist' -path '*/LaunchAgents/*' -o -path '*/LaunchDaemons/*') | while read -r os path ; do \ - case "$$path" in (*/LaunchAgents/*) kind=agent ;; (*/LaunchDaemons/*) kind=daemon ;; esac ; \ + $(call find,-type f -name '*.plist' -path '*/LaunchAgents/*' -o -path '*/LaunchAngels/*' -o -path '*/LaunchDaemons/*' -o -path '*/NanoLaunchDaemons/*') | while read -r os path ; do \ + case "$$path" in (*/LaunchAgents/*) kind=agent ;; (*/LaunchAngels/*) kind=angel ;; (*/LaunchDaemons/*) kind=daemon ;; (*/NanoLaunchDaemons/*) kind=daemon-nano ;; esac ; \ test -r "$(call prefix,$$os)$$path" && plutil -convert json "$(call prefix,$$os)$$path" -o - | \ sed "s/'/''/g;s|.*|INSERT INTO services $(call file,'$$kind'$(,)json('&'));\n|" ; \ done