Modify our path collection loop to accept the remaining argv as paths to config files. This overrides the default lookup for config files in /etc, /lib, and /run so that single config files can be parsed at a time (e.g. during package installation). Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- Also makes testing a bit easier... arch-tmpfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-tmpfiles b/arch-tmpfiles index 3b94885..4b12841 100755 --- a/arch-tmpfiles +++ b/arch-tmpfiles @@ -235,7 +235,7 @@ fi # directories declared later in the tmpfiles_d array will override earlier # directories, on a per file basis. # Example: `/etc/tmpfiles.d/foo.conf' supersedes `/usr/lib/tmpfiles.d/foo.conf'. -for path in "${tmpfiles_d[@]}"; do +for path in "${@:-${tmpfiles_d[@]}}"; do [[ -f $path ]] && fragments[${path##*/}]=${path%/*} done -- 1.7.9.3