diff --git a/src/beesh.sh.in b/src/beesh.sh.in index 3fddef6..c419363 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -262,7 +262,7 @@ function fetch_one_file() { if [ "${url:0:1}" = "/" ] ; then print_info "copying file ${url}" - cp -v "${url}" "${F}/${file}" + cp --no-preserve=mode -v "${url}" "${F}/${file}" else if [ "${url:0:5}" == "https" ] ; then nocheck="--no-check-certificate" @@ -612,7 +612,7 @@ function bee_pkg_pack() { exit 1 fi - cp "${BEE}" "${D}/BUILD" + cp --no-preserve=mode "${BEE}" "${D}/BUILD" create_meta @@ -620,7 +620,7 @@ function bee_pkg_pack() { mkdir -pv "${D}/PATCHES" fi for p in "${bee_PATCHFILES[@]}" ; do - cp "${p}" "${D}/PATCHES" + cp --no-preserve=mode "${p}" "${D}/PATCHES" done if [ ! -d "${BEE_PKGDIR}" ] ; then @@ -663,7 +663,7 @@ function bee_pkg_pack() { mkdir -pv "${BEE_BEEDIR}" fi - cp -v "${BEE}" "${beefiledest}" + cp --no-preserve=mode -v "${BEE}" "${beefiledest}" }