mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Inject block into global bash configuration files
Inject block into /etc/bash.bashrc and $HOME/bash.bashrc.
This commit is contained in:
@@ -300,6 +300,13 @@ done
|
||||
|
||||
update_scripts_with_block
|
||||
|
||||
# --- MINIMAL CHANGE: also inject into /etc/bash.bashrc (for interactive bash shells)
|
||||
mkdir -p /etc "$HOME"
|
||||
touch "/etc/bash.bashrc"
|
||||
touch "$HOME/bash.bashrc"
|
||||
inject_block_into_file "/etc/bash.bashrc"
|
||||
inject_block_into_file "$HOME/bash.bashrc"
|
||||
|
||||
################
|
||||
# Set timezone #
|
||||
################
|
||||
|
||||
Reference in New Issue
Block a user