From 673d76928524f054df349427d351812665438878 Mon Sep 17 00:00:00 2001 From: Oleksandr Kulkov Date: Tue, 29 Oct 2024 04:19:02 +0100 Subject: [PATCH] escape {} into '' for non-standard filenames --- archiver/checks/default_preparation_checks.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiver/checks/default_preparation_checks.ini b/archiver/checks/default_preparation_checks.ini index e9898b5..9c9b58b 100644 --- a/archiver/checks/default_preparation_checks.ini +++ b/archiver/checks/default_preparation_checks.ini @@ -26,7 +26,7 @@ precondition=find --version | grep 'GNU findutils' precondition_failure_msg=Requires GNU find. On mac, you can install it using 'brew install findutils' # for every link, resolve path relative to archive dir, if not within archive dir, print absolute # note, that the second -exec will only be executed if the previous exec was successful -check_cmd=find . -type l ! -xtype l -exec sh -c "realpath --relative-base . {} | grep --quiet '^/' " \; -exec echo {} \; +check_cmd=find . -type l ! -xtype l -exec sh -c "realpath --relative-base . '{}' | grep --quiet '^/' " \; -exec echo {} \; success_conditions=EMPTY_OUTPUT check_failure_msg=Found symlinks pointing outside the directory tree of {WDIR}. Archives may not be complete.