1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-27 05:29:47 +01:00

populate: allow directories as sentinel

This commit is contained in:
tv 2019-07-16 21:38:58 +02:00
parent 1921a71a75
commit 42e8085b95

View file

@ -11,7 +11,7 @@ let
mkdir -vp ${quote (dirOf sentinelFile)} >&2 mkdir -vp ${quote (dirOf sentinelFile)} >&2
touch ${quote sentinelFile} touch ${quote sentinelFile}
''} ''}
if ! test -f ${quote sentinelFile}; then if ! test -e ${quote sentinelFile}; then
>&2 printf 'error: missing sentinel file: %s\n' ${quote ( >&2 printf 'error: missing sentinel file: %s\n' ${quote (
optionalString (!isLocalTarget target) "${target.host}:" + optionalString (!isLocalTarget target) "${target.host}:" +
sentinelFile sentinelFile