diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index 91c66f13..17526a34 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -72,8 +72,8 @@ strip_file() { while IFS= read -r t; do file="${srcdir}/${t}" dest="${dbgsrc}/${t}" - if [[ -f "$file" ]] && ! [[ -f $dest ]]; then - mkdir -p "${dest%/*}" + mkdir -p "${dest%/*}" + [[ -f "$file" ]]; then cp -- "$file" "$dest" fi done < <(source_files "$binary")