mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix unquoted variable expansions in source commands
Quote file paths to prevent word splitting issues. Changed: - microk8s line 13: source $cache → source "$cache" - autoenv line 54: source $autoenv_dir/activate → source "$autoenv_dir/activate" - autoenv line 56: source $autoenv_dir/activate.sh → source "$autoenv_dir/activate.sh" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
88659ed193
commit
b7ac62447d
3 changed files with 4 additions and 3 deletions
|
|
@ -51,9 +51,9 @@ END
|
|||
fi
|
||||
# Load autoenv
|
||||
if [[ -e $autoenv_dir/activate ]]; then
|
||||
source $autoenv_dir/activate
|
||||
source "$autoenv_dir/activate"
|
||||
else
|
||||
source $autoenv_dir/activate.sh
|
||||
source "$autoenv_dir/activate.sh"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ _microk8s_cache_completion() {
|
|||
$2 $cache
|
||||
fi
|
||||
|
||||
[[ -f $cache ]] && source $cache
|
||||
[[ -f $cache ]] && source "$cache"
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------- #
|
||||
|
|
|
|||
1
rxjs-pr
Submodule
1
rxjs-pr
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c15b37f81ba5f5abea8c872b0189a70b150df4cb
|
||||
Loading…
Add table
Add a link
Reference in a new issue