Use install to create directories for modules

This commit is contained in:
Rezart Qelibari
2022-04-19 05:43:22 +02:00
parent 203cef9bf6
commit a6b1759302
4 changed files with 12 additions and 9 deletions

View File

@@ -9,10 +9,7 @@ function ensureRightAccess() {
function configure_system() {
local dstDir='/usr/local/bin'
[[ -d ${dstDir} ]] || {
lop -- -e "Could not install binaries. Directory ${dstDir} does not exist."
return 10
}
ensurePathOrLogError ${dstDir} 'Could not install binaries.' || return 10
pushd -q ${_DIR}/../bin
for file in *; do
indicateActivity cp,${file},${dstDir} "Copying ${file}"
@@ -24,6 +21,7 @@ function configure_system() {
function getExecPrerequisites() {
cmds=(
[cp]=''
[install]=''
)
}