From 42e8085b95ff9011b13e7240aa608ea8c6e310b3 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 16 Jul 2019 21:38:58 +0200 Subject: populate: allow directories as sentinel --- pkgs/populate/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/populate') diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix index 50bceca..23ee020 100644 --- a/pkgs/populate/default.nix +++ b/pkgs/populate/default.nix @@ -11,7 +11,7 @@ let mkdir -vp ${quote (dirOf sentinelFile)} >&2 touch ${quote sentinelFile} ''} - if ! test -f ${quote sentinelFile}; then + if ! test -e ${quote sentinelFile}; then >&2 printf 'error: missing sentinel file: %s\n' ${quote ( optionalString (!isLocalTarget target) "${target.host}:" + sentinelFile -- cgit v1.2.3