mirror of
https://github.com/armbian/build.git
synced 2025-08-12 14:16:57 +02:00
* Add shebangs for shellcheck See #AR-1406 * Add shebangs for shellcheck Also for `extensions` scripts
14 lines
431 B
Bash
14 lines
431 B
Bash
#!/usr/bin/env bash
|
|
# copy_all_packages_files_for <folder> to package
|
|
#
|
|
copy_all_packages_files_for() {
|
|
local package_name="${1}"
|
|
for package_src_dir in ${PACKAGES_SEARCH_ROOT_ABSOLUTE_DIRS}; do
|
|
local package_dirpath="${package_src_dir}/${package_name}"
|
|
if [ -d "${package_dirpath}" ]; then
|
|
cp -r "${package_dirpath}/"* "${destination}/" 2> /dev/null
|
|
display_alert "Adding files from" "${package_dirpath}"
|
|
fi
|
|
done
|
|
}
|