mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
pip: fix no such file or directory error (#7916)
Zsh may be configured such that ">>" will error if the file doesn't exist (`setopt noclobber`).
This commit is contained in:
parent
702a594df3
commit
d0b29ff0b3
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ zsh-pip-cache-packages() {
|
|||
if [[ ! -f $ZSH_PIP_CACHE_FILE ]]; then
|
||||
echo -n "(...caching package index...)"
|
||||
tmp_cache=/tmp/zsh_tmp_cache
|
||||
touch $tmp_cache
|
||||
for index in $ZSH_PIP_INDEXES ; do
|
||||
# well... I've already got two problems
|
||||
curl -L $index 2>/dev/null | \
|
||||
|
|
Loading…
Reference in a new issue