From 68f001e2880dc73dd0fcdaae2f574a5de6f13b26 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 16 Apr 2025 08:53:55 +0200 Subject: [PATCH] Fix. --- bookworm/scripts/lib/copy_dirtree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookworm/scripts/lib/copy_dirtree b/bookworm/scripts/lib/copy_dirtree index f0d5c1f..607e0d8 100644 --- a/bookworm/scripts/lib/copy_dirtree +++ b/bookworm/scripts/lib/copy_dirtree @@ -18,11 +18,11 @@ copy_dirtree() { _PATH_TARGET="${_TARGET_ROOT}"$(echo "${_PATH_REL}" | cut -c 2-) _PATH_SOURCE=$(realpath "${_PATH_REL}") _DIRECTORY=$(dirname "${_PATH_TARGET}") - if [ -z "${_OWNER}" = '-' ]; then + if [ ! "${_OWNER}" = '-' ]; then mkdir_p_for_user "${_OWNER}" "${_DIRECTORY}" fi cp -av "${_PATH_SOURCE}" "${_PATH_TARGET}" - if [ -z "${_OWNER}" '-' ]; then + if [ ! "${_OWNER}" '-' ]; then chown "${_OWNER}:${_OWNER}" "${_PATH_TARGET}" fi done -- 2.30.2