mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02: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
|
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 #
|
# Set timezone #
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user