mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-29 09:20:32 +02:00
Ensure HOME directory exists before export
This commit is contained in:
@@ -301,11 +301,14 @@ done
|
||||
update_scripts_with_block
|
||||
|
||||
# --- MINIMAL CHANGE: also inject into /etc/bash.bashrc (for interactive bash shells)
|
||||
mkdir -p /etc "$HOME"
|
||||
mkdir -p /etc
|
||||
touch "/etc/bash.bashrc"
|
||||
touch "$HOME/bash.bashrc"
|
||||
inject_block_into_file "/etc/bash.bashrc"
|
||||
inject_block_into_file "$HOME/bash.bashrc"
|
||||
if [[ -n "${HOME:-}" ]]; then
|
||||
mkdir -p "$HOME"
|
||||
touch "$HOME/bash.bashrc"
|
||||
inject_block_into_file "$HOME/bash.bashrc"
|
||||
fi
|
||||
|
||||
################
|
||||
# Set timezone #
|
||||
|
||||
Reference in New Issue
Block a user