mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-26 09:58:38 +01:00
Automatically create a directory for HOME_DIR when it is set
This commit is contained in:
parent
c186b86cbd
commit
30938e7713
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,7 @@ mount_point="${working_dir}"/mnt
|
|||
# a problem with mounting the image due to an incorrectly calculated offset.
|
||||
|
||||
# The size of this script
|
||||
scriptsize=23929
|
||||
scriptsize=23981
|
||||
|
||||
# The size of the utils archive
|
||||
utilssize=2542302
|
||||
|
@ -607,6 +607,8 @@ run_bwrap () {
|
|||
show_msg "Set home directory to ${HOME_DIR}"
|
||||
|
||||
custom_home+=("--bind" "${HOME_DIR}" "${HOME}")
|
||||
|
||||
[ ! -d "${HOME_DIR}" ] && mkdir -p "${HOME_DIR}"
|
||||
fi
|
||||
|
||||
# Set the XAUTHORITY variable if it's missing (which is unlikely)
|
||||
|
|
Loading…
Reference in a new issue