Skip to content

Commit 06e79d0

Browse files
committed
Replace 'cp --no-clobber' with update=none
no-clobber is non-portable and deprecated
1 parent fc0767d commit 06e79d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/lib-build-whynot.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ function sync_mods_folder {
2424

2525
$RSYNC $exclusionlist $childmod/ $DSTPATH/$childname/
2626
if ls $SRC/$subm/[Ll][Ii][Cc][Ee][Nn][SsCc][Ee]* &> /dev/null; then
27-
cp --no-clobber $VERBOSEONLY $SRC/$subm/[Ll][Ii][Cc][Ee][Nn][SsCc][Ee]* $DSTPATH/$childname/
27+
cp --update=none $VERBOSEONLY $SRC/$subm/[Ll][Ii][Cc][Ee][Nn][SsCc][Ee]* $DSTPATH/$childname/
2828
elif ls $SRC/$subm/[Cc][Oo][Pp][Yy][Ii][Nn][Gg]* &> /dev/null; then
29-
cp --no-clobber $VERBOSEONLY $SRC/$subm/[Cc][Oo][Pp][Yy][Ii][Nn][Gg]* $DSTPATH/$childname/
29+
cp --update=none $VERBOSEONLY $SRC/$subm/[Cc][Oo][Pp][Yy][Ii][Nn][Gg]* $DSTPATH/$childname/
3030
elif ls $SRC/$subm/[Rr][Ee][Aa][Dd][Mm][Ee]* &> /dev/null; then
31-
cp --no-clobber $VERBOSEONLY $SRC/$subm/[Rr][Ee][Aa][Dd][Mm][Ee]* $DSTPATH/$childname/
31+
cp --update=none $VERBOSEONLY $SRC/$subm/[Rr][Ee][Aa][Dd][Mm][Ee]* $DSTPATH/$childname/
3232
fi
3333

3434
else

0 commit comments

Comments
 (0)