Skip to content

Commit

Permalink
units: don't use -r option with -a option of cp command
Browse files Browse the repository at this point in the history
-a implies -r. This redundancy causes an error on MacOSX.

Signed-off-by: Masatake YAMATO <[email protected]>
  • Loading branch information
masatake committed Mar 10, 2019
1 parent 435bffb commit 3d68614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/units
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ prepare_bundles ()
;;
*)
dist="${to}/$(basename ${src})"
if ! cp -ar "${src}" "${to}"; then
if ! cp -a "${src}" "${to}"; then
ERROR 1 "failure in copying bundle file \"${src}\" to \"${to}\""
else
echo ${dist} >> ${obundles}
Expand Down

0 comments on commit 3d68614

Please sign in to comment.