systems/utils.sh

11 lines
236 B
Bash
Raw Normal View History

2023-07-02 11:42:44 +00:00
_system_sed_path() {
echo "$1" | sed -e "s/\//_/g"
}
_system_install() {
temp_pkg=$1
temp_src=$(_system_sed_path "$temp_pkg")
# shellcheck disable=SC2154
install "-Dm${2:-644}" "${srcdir}/${temp_src}" "${pkgdir}/${temp_pkg}"
}