Skip to content

Commit

Permalink
Merge pull request #16 from mariux64/fix-cp-modes
Browse files Browse the repository at this point in the history
beesh: Force defined mode for copies of source files
pmenzel authored Dec 18, 2017
2 parents bd82c96 + 5353746 commit 6a23652
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
@@ -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,15 +612,15 @@ function bee_pkg_pack() {
exit 1
fi

cp "${BEE}" "${D}/BUILD"
cp --no-preserve=mode "${BEE}" "${D}/BUILD"

create_meta

if [ -n "${bee_PATCHFILES[0]}" ] ; then
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}"
}


0 comments on commit 6a23652

Please sign in to comment.