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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user