"#"
This commit is contained in:
@@ -81,7 +81,7 @@ Global flags:
|
||||
Sync flags:
|
||||
--forward Forward only (mono → subrepo)
|
||||
--reverse Reverse only (subrepo → mono)
|
||||
--target NAME Filter to one target (env: JOSH_SYNC_TARGET)
|
||||
--target NAME Filter to target(s) — comma-separated for multiple (env: JOSH_SYNC_TARGET)
|
||||
--branch BRANCH Filter to one branch
|
||||
|
||||
Environment:
|
||||
@@ -137,7 +137,7 @@ _sync_direction() {
|
||||
target_name=$(echo "$TARGET_JSON" | jq -r '.name')
|
||||
|
||||
# Filter to specific target if requested
|
||||
if [ -n "$filter_target" ] && [ "$filter_target" != "$target_name" ]; then
|
||||
if [ -n "$filter_target" ] && ! echo ",$filter_target," | grep -q ",${target_name},"; then
|
||||
continue
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user