diff options
author | Pierre Labastie <pierre@linuxfromscratch.org> | 2018-02-03 16:37:32 +0000 |
---|---|---|
committer | Pierre Labastie <pierre@linuxfromscratch.org> | 2018-02-03 16:37:32 +0000 |
commit | c7b535b488773a93b17f05ae79d3796be750b7fe (patch) | |
tree | 001edb48b2a2bea53836a97a1eacf0e7cfdcb2b2 /common/libs/func_install_blfs | |
parent | f1edc8e377a702fca4614bd7083222fbe319df85 (diff) |
Remove the need to have write access to BUILDDIR, using sudi, which is
required anyway. ticket #1715
Diffstat (limited to 'common/libs/func_install_blfs')
-rw-r--r-- | common/libs/func_install_blfs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs index e86d9e20b5..4b728af3f3 100644 --- a/common/libs/func_install_blfs +++ b/common/libs/func_install_blfs @@ -7,7 +7,10 @@ install_blfs_tools() { # the scriptlets to build #----------------------------# the dependency tools set -e # Install the files -[[ ! -d ${BUILDDIR}${BLFS_ROOT} ]] && mkdir -pv ${BUILDDIR}${BLFS_ROOT} +[[ ! -d ${BUILDDIR}${BLFS_ROOT} ]] && { + sudo mkdir -pv ${BUILDDIR}${BLFS_ROOT} + sudo chown $USER:$USER ${BUILDDIR}${BLFS_ROOT} +} cp -r BLFS/* ${BUILDDIR}${BLFS_ROOT} cp -r menu ${BUILDDIR}${BLFS_ROOT} cp $COMMON_DIR/progress_bar.sh ${BUILDDIR}${BLFS_ROOT} |