Skip to content

beesh: Force defined mode for copies of source files #16

Merged
merged 1 commit into from
Dec 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -663,7 +663,7 @@ function bee_pkg_pack() {
mkdir -pv "${BEE_BEEDIR}"
fi

cp -v "${BEE}" "${beefiledest}"
cp --no-preserve=mode -v "${BEE}" "${beefiledest}"
}


Expand Down