Browse Source

.travis.yml: use long options

nodiscc 6 năm trước cách đây
mục cha
commit
d0174df810
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -11,7 +11,7 @@ before_install:
 before_script:
   
 script:
-  - git diff master.. -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md || (exit 0)
+  - git diff master.. --unified=0 README.md | grep --perl-regexp --only-matching --silent "(?<=^\+).*" >> temp.md || (exit 0)
   - node test.js temp.md
   - awesome_bot temp.md --allow-redirect || (exit 0)
   - awesome_bot README.md --allow-redirect || (exit 0)