From 77d0ab67366cf39b4ae476a93f499eef4809def6 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 6 Mar 2015 11:05:42 +0100 Subject: [PATCH] scripts/Bootstrap/Pmodules/modmanage.in: bugfixes in dry-run of init --- scripts/Bootstrap/Pmodules/modmanage.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Bootstrap/Pmodules/modmanage.in b/scripts/Bootstrap/Pmodules/modmanage.in index 676282b..669e15d 100755 --- a/scripts/Bootstrap/Pmodules/modmanage.in +++ b/scripts/Bootstrap/Pmodules/modmanage.in @@ -101,7 +101,7 @@ sync_module() { local -r rel_module_prefix=$( get_module_prefix "${rel_modulefile}" ) local -r rel_releasefile=$( get_releasefile_name "${rel_modulefile}" ) - mkdir -p "${target_prefix}/${rel_module_prefix}" || return $? + $DRY mkdir -p "${target_prefix}/${rel_module_prefix}" || return $? $DRY rsync --links --perms --recursive --delete \ "${src_prefix}/${rel_module_prefix}/" \ "${target_prefix}/${rel_module_prefix}/" || return $? @@ -113,7 +113,7 @@ sync_module() { if [[ -e "${src_modulefile}" ]] || [[ -e "${src_releasefile}" ]]; then local dir=$( dirname "${target_modulefile}" ) - mkdir -p "${dir}" || return $? + $DRY mkdir -p "${dir}" || return $? fi if [[ -e "${src_modulefile}" ]]; then $DRY rsync --links --perms --recursive \