populate: allow directories as sentinel

This commit is contained in:
tv 2019-07-16 21:38:58 +02:00
parent 1921a71a75
commit 42e8085b95
1 changed files with 1 additions and 1 deletions

View File

@ -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