fix: correct heredoc syntax - args before heredoc marker
- Change from `python3 <<HEREDOC - args` to `python3 - args <<HEREDOC` - Fixes argument passing to Python scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -191,7 +191,7 @@ parse_yaml() {
|
||||
local yaml_file="$1"
|
||||
local category="$2"
|
||||
|
||||
python3 <<EOPYAML - "$yaml_file" "$category"
|
||||
python3 - "$yaml_file" "$category" <<EOPYAML
|
||||
import yaml
|
||||
import sys
|
||||
|
||||
@@ -310,7 +310,7 @@ find_model_files() {
|
||||
local repo_id="$1"
|
||||
local filename_filter="$2"
|
||||
|
||||
python3 <<EOPYFINDFIND - "$CACHE_DIR" "$repo_id" "$filename_filter"
|
||||
python3 - "$CACHE_DIR" "$repo_id" "$filename_filter" <<EOPYFINDFIND
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
Reference in New Issue
Block a user