Merge pull request #80348 from basvandijk/symlinkJoin-passAsFile
symlinkJoin: fix "bash: Argument list too long" error
This commit is contained in:
commit
cf2a8ac2cc
@ -255,11 +255,14 @@ rec {
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
args = removeAttrs args_ [ "name" "postBuild" ]
|
args = removeAttrs args_ [ "name" "postBuild" ]
|
||||||
// { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults
|
// {
|
||||||
|
inherit preferLocalBuild allowSubstitutes;
|
||||||
|
passAsFile = [ "paths" ];
|
||||||
|
}; # pass the defaults
|
||||||
in runCommand name args
|
in runCommand name args
|
||||||
''
|
''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
for i in $paths; do
|
for i in $(cat $pathsPath); do
|
||||||
${lndir}/bin/lndir -silent $i $out
|
${lndir}/bin/lndir -silent $i $out
|
||||||
done
|
done
|
||||||
${postBuild}
|
${postBuild}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user