diff options
Diffstat (limited to 'src/common-utils/main.sh')
-rw-r--r-- | src/common-utils/main.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common-utils/main.sh b/src/common-utils/main.sh index ff2c54c..893f53a 100644 --- a/src/common-utils/main.sh +++ b/src/common-utils/main.sh @@ -383,6 +383,10 @@ if [ "${USERNAME}" = "root" ]; then user_rc_path="/root" else user_rc_path="/home/${USERNAME}" + if [ ! -d "${user_rc_path}" ]; then + mkdir -p "${user_rc_path}" + chown ${USERNAME}:${group_name} "${user_rc_path}" + fi fi # Restore user .bashrc / .profile / .zshrc defaults from skeleton file if it doesn't exist or is empty |