Skip to content

Commit 0c7a42d

Browse files
add -r so it runs zero times for empty input
1 parent 5e7ebc6 commit 0c7a42d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

async-toolkit/m3utils/m3utils/oss/copyright.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ LINE1="Copyright (c) %Y Intel Corporation. All rights reserved. See the file C
55
LINE2="SPDX-License-Identifier: Apache-2.0"
66
M3INSTALL=/nfs/pdx/disks/or_n3a_disk001/w138/mnystroe/m3utils
77

8-
(find . -type f -and -name \*.\* | xargs -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
8+
(find . -type f -and -name \*.\* | xargs -r -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
99

10-
(find . -type f -and -name m3makefile | xargs -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type tex -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
10+
(find . -type f -and -name m3makefile | xargs -r -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type tex -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
1111

12-
(find . -type f -and -name Makefile | xargs -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type sh -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
12+
(find . -type f -and -name Makefile | xargs -r -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type sh -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
1313

14-
(find . -type f -and -name GNUmakefile | xargs -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type sh -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
14+
(find . -type f -and -name GNUmakefile | xargs -r -n1 ${M3INSTALL}/copyright/AMD64_LINUX/copyright -type sh -year 2025 -line1 "${LINE1}" -line2 "${LINE2}" )
1515

0 commit comments

Comments
 (0)