Skip to content

Commit bbdcd74

Browse files
Merge pull request #165 from stuggi/fix_prow_script
Ignore .git directory in switch_prow_jobs_fr_branch.sh
2 parents f80ca71 + 4cd291e commit bbdcd74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

switch_prow_jobs_fr_branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -ex
1212
CURRENT=$1
1313
NEXT=$2
1414

15-
for X in $(find . | grep 18.0-fr); do
15+
for X in $(find . -name .git -prune -o -type f -print | grep 18.0-fr); do
1616
#rename the file (NOTE: prow jobs require frX in the name)
1717
NEW_FILE=$(echo $X | sed -e "s|$CURRENT|$NEXT|")
1818
git mv $X $NEW_FILE

0 commit comments

Comments
 (0)