Skip to content

Commit 5305861

Browse files
committed
Fix flake8_diff.sh when Travis runs in a fork
The grep was not matching anything so the script exited with a 1 exit code.
1 parent 5daee96 commit 5305861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_tools/travis/flake8_diff.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo "Remotes:"
2424
git remote --verbose
2525

2626
# Find the remote with the project name (upstream in most cases)
27-
REMOTE=$(git remote -v | grep $PROJECT | cut -f1 | head -1)
27+
REMOTE=$(git remote -v | grep $PROJECT | cut -f1 | head -1 || echo '')
2828

2929
# Add a temporary remote if needed. For example this is necessary when
3030
# Travis is configured to run in a fork. In this case 'origin' is the

0 commit comments

Comments
 (0)