mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02: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"
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------- #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue