Skip to content

Commit

Permalink
Replace 'cp --no-clobber' with update=none
Browse files Browse the repository at this point in the history
no-clobber is non-portable and deprecated
  • Loading branch information
dacmot committed Oct 4, 2024
1 parent fc0767d commit 06e79d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builder/lib-build-whynot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function sync_mods_folder {

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

else
Expand Down

0 comments on commit 06e79d0

Please sign in to comment.