Fix unquoted variables in all shell scripts to prevent word splitting

Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-06-04 15:39:06 +00:00
parent da44498341
commit 010d2899b3
9 changed files with 27 additions and 27 deletions

View File

@@ -36,7 +36,7 @@ _dots_load_nvm
node_alias="$NVM_DIR/alias/lts/jod"
if [ -f "$node_alias" ]; then
VERSION=`cat $node_alias`
VERSION=`cat "$node_alias"`
node_bin_path="$NVM_DIR/versions/node/$VERSION/bin"
if [[ ":$PATH:" != *":$node_bin_path:"* ]]; then
export PATH="$node_bin_path:$PATH"

View File

@@ -7,7 +7,7 @@ fi
# Load profile
# -----------------------------------------------------------------------------
_dots_load_profile() {
source $HOME/.profile
source "$HOME/.profile"
}
_dots_load_profile
@@ -21,7 +21,7 @@ _dots_load_omz() {
zsh-autosuggestions
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
source "$ZSH/oh-my-zsh.sh"
}
_dots_load_omz