Bladeren bron

Fix bad dist paths due to inadvertent ShellCheck "fix"

Actually ShellCheck was *right* that the variable expansion needed to
take care of spaces in paths, but the fix (g:b68913c in ffoo repo) was
totally wrong and only broke things.

Lessons learned:

 *  *Do* run ShellCheck et al., but still **DO CAREFULLY** consider
    effects in the particular context.

 *  Too much coffee, repetitive work *and* distraction is a good way
    to ask for trouble.
Alois Mahdal 9 jaren geleden
bovenliggende
commit
d6ef9dadb7
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/include/build.sh

+ 1
- 1
src/include/build.sh Bestand weergeven

@@ -67,7 +67,7 @@ dist() {
67 67
     local version=$(get_version)
68 68
     local dirname=$MKIT_PKGNAME-$version
69 69
     mkdir -p "$dirname"
70
-    cp -R "$(ini values "lists:dist")" "$dirname"
70
+    ini values "lists:dist" | xargs -I DIST_ITEM cp -R DIST_ITEM "$dirname"
71 71
     sed -i -e "s/^VERSION = .*/VERSION = $version/" "$dirname/config.mk"
72 72
     tar -cf "$dirname.tar" "$dirname"
73 73
     gzip "$dirname.tar"