diff options
author | tv <tv@krebsco.de> | 2019-07-16 21:38:58 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-07-16 22:13:26 +0200 |
commit | 42e8085b95ff9011b13e7240aa608ea8c6e310b3 (patch) | |
tree | bc6ad1967dd5d6b93a777c8e2950c524f0ead22e | |
parent | 1921a71a75bcf3fbe9850b60f9d72092e933dcc3 (diff) |
populate: allow directories as sentinel
-rw-r--r-- | pkgs/populate/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 |