From: Christian Heller Date: Thu, 17 Apr 2025 21:13:37 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/foo.html?a=commitdiff_plain;h=9e542ba1e45108dd8533701815ff2f379cb49cf6;p=config Fix. --- diff --git a/bookworm/scripts/lib/copy_dirtrees_of_tags b/bookworm/scripts/lib/copy_dirtrees_of_tags index 22f2194..f6ae7f8 100644 --- a/bookworm/scripts/lib/copy_dirtrees_of_tags +++ b/bookworm/scripts/lib/copy_dirtrees_of_tags @@ -15,7 +15,7 @@ copy_dirtrees() { # ensure directory by mkdir -p; to avoid later chowning pre-existing directories, # collect only what's returned by the command as actually newly created _CREATION_SUMMARY=$(mkdir -pv "${_DIRECTORY}") - _CREATED_PATHS=(echo "${_CREATION_SUMMARY}" | sed -E "s/'\$//g") | sed -E "s/\$mkdir: created directory '//g" + _CREATED_PATHS=$(echo "${_CREATION_SUMMARY}" | sed -E "s/'\$//g" | sed -E "s/\$mkdir: created directory '//g") _PATHS_WRITTEN="${_CREATED_PATHS}${_PATHS_WRITTEN}" # handle dirtree creation instruction files @@ -39,7 +39,7 @@ copy_dirtrees() { # actual file copying _PATH_SOURCE=$(realpath "${_PATH_REL}") _CREATION_SUMMARY=$(cp -av "${_PATH_SOURCE}" "${_PATH_TARGET}") - _CREATED_PATHS=(echo "${_CREATION_SUMMARY}" | sed -E "s/'\$//g") | sed "s/.*' -> '//g") + _CREATED_PATHS=$(echo "${_CREATION_SUMMARY}" | sed -E "s/'\$//g" | sed "s/.*' -> '//g") _PATHS_WRITTEN="${_CREATED_PATHS}${_PATHS_WRITTEN}" done cd - > /dev/null @@ -47,7 +47,7 @@ copy_dirtrees() { # for all paths written into user home directories, chown to respective users for _PATH in ${_PATHS_WRITTEN}; do - _IS_FOR_USER=$(echo "${_PATH}" | grep -E '^/home/") + _IS_FOR_USER=$(echo "${_PATH}" | grep -E '^/home/') if [ -z "${_IS_FOR_USER}" ]; then continue fi