Skip to content

Commit 93c594c

Browse files
committed
xargs -a isn't on OS X :(
1 parent 5a253a4 commit 93c594c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/cram

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ dk.test() { dk cram; }
1010
dk.cram() {
1111
dk bootstrap;
1212
require cram install-cram
13+
IFS=$'\n' eval 'local cramfiles=($(cram.files))'
1314
if (($#)); then
14-
xargs -a <(cram.files) cram "$@"
15-
else xargs -a <(cram.files) cram | {
15+
cram "$@" "${cramfiles[@]}"
16+
else cram "${cramfiles[@]}" | {
1617
if have-any pygmentize; then
1718
pygmentize -l diff | slurpy
1819
else

0 commit comments

Comments
 (0)