mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix unquoted variable expansions in touch commands
Quote file paths to prevent word splitting issues. Changed: - pip plugin line 36: touch $tmp_cache → touch "$tmp_cache" - sublime plugin line 112: touch $_sublime_project_file → touch "$_sublime_project_file" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
88659ed193
commit
b89e7d8e4a
3 changed files with 3 additions and 2 deletions
|
|
@ -33,7 +33,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
|
||||
touch "$tmp_cache"
|
||||
for index in $ZSH_PIP_INDEXES ; do
|
||||
# well... I've already got two problems
|
||||
curl -L $index 2>/dev/null | \
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ function create_project() {
|
|||
local _sublime_project_file=$_target/$(basename $_target).sublime-project
|
||||
|
||||
if [[ ! -f $_sublime_project_file ]]; then
|
||||
touch $_sublime_project_file
|
||||
touch "$_sublime_project_file"
|
||||
|
||||
echo -e "{" >> $_sublime_project_file
|
||||
echo -e "\t\"folders\":" >> $_sublime_project_file
|
||||
|
|
|
|||
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