|
13 | 13 | # See the License for the specific language governing permissions and |
14 | 14 | # limitations under the License. |
15 | 15 |
|
16 | | -set -o errexit -o nounset -o pipefail |
| 16 | +set -o nounset |
| 17 | +set -o pipefail |
| 18 | +set -o errexit |
17 | 19 |
|
| 20 | +set -x |
18 | 21 | # Exclude dot directories, specifically, this file so that we don't |
19 | 22 | # find the substring we're looking for in our own file. |
20 | 23 | # Exclude CONTRIBUTING.md, RELEASING.md because they document how to use these strings. |
21 | | -if grep --exclude=CONTRIBUTING.md --exclude=RELEASING.md --exclude-dir=.* VERSION_NEXT_ -r;then |
| 24 | +grep --exclude=CONTRIBUTING.md \ |
| 25 | + --exclude=RELEASING.md \ |
| 26 | + --exclude=release.py \ |
| 27 | + --exclude=release_test.py \ |
| 28 | + --exclude-dir=.* \ |
| 29 | + VERSION_NEXT_ -r|| grep_exit_code=$? |
| 30 | + |
| 31 | +if [[$grep_exit_code-eq 0 ]];then |
22 | 32 | echo |
23 | 33 | echo"Found VERSION_NEXT markers indicating version needs to be specified" |
24 | 34 | exit 1 |
|