mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Fix unquoted variable expansions in pip plugin rm commands
Quote file paths to prevent word splitting and globbing issues. Changed: - Line 20: rm $ZSH_PIP_CACHE_FILE → rm "$ZSH_PIP_CACHE_FILE" - Line 44: rm $tmp_cache → rm "$tmp_cache" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
88659ed193
commit
347c99825f
2 changed files with 3 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ fi
|
|||
ZSH_PIP_INDEXES=(https://pypi.org/simple/)
|
||||
|
||||
zsh-pip-clear-cache() {
|
||||
rm $ZSH_PIP_CACHE_FILE
|
||||
rm "$ZSH_PIP_CACHE_FILE"
|
||||
unset piplist
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ zsh-pip-cache-packages() {
|
|||
>> $tmp_cache
|
||||
done
|
||||
sort $tmp_cache | uniq | tr '\n' ' ' > $ZSH_PIP_CACHE_FILE
|
||||
rm $tmp_cache
|
||||
rm "$tmp_cache"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue