diff options
author | George Melikov <[email protected]> | 2019-10-08 20:10:23 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-08 10:10:23 -0700 |
commit | 7b50929851b055deb96fcba919791d5699563e5d (patch) | |
tree | 626cd2fcd63dc9adccd4625aba16ebdeddcb5fbb /module | |
parent | 94bcf6f5e31aad91033111ffed0ca45934e0e37d (diff) |
module/Makefile.in: don't run xargs if empty
If stdin if empty - don't run xargs command,
otherwise we can get `cp: missing file operand`
error.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: George Melikov <[email protected]>
Closes #9418
Diffstat (limited to 'module')
-rw-r--r-- | module/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in index 194133864..24af81aa7 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -115,5 +115,5 @@ distdir: list='$(obj-m)'; for objdir in $$list; do \ (cd @top_srcdir@/module && find $$objdir \ -name '*.c' -o -name '*.h' -o -name '*.S' | \ - xargs cp --parents -t @abs_top_builddir@/module/$$distdir); \ + xargs -r cp --parents -t @abs_top_builddir@/module/$$distdir); \ done |