mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01: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
|
||||
}
|
||||
|
||||
|
|
|
|||
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