Sean Dague | 9f20ea1 | 2014-11-17 15:14:49 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | |
| 16 | echo "Ensuring we don't have crazy refs" |
| 17 | |
Sean McGinnis | a492206 | 2018-02-15 07:45:10 -0600 | [diff] [blame] | 18 | REFS=`grep BRANCH stackrc | grep -v 'TARGET_BRANCH' | grep -v 'NOVNC_BRANCH'` |
Sean Dague | 9f20ea1 | 2014-11-17 15:14:49 -0500 | [diff] [blame] | 19 | rc=$? |
| 20 | if [[ $rc -eq 0 ]]; then |
Sean McGinnis | a492206 | 2018-02-15 07:45:10 -0600 | [diff] [blame] | 21 | echo "Branch defaults must be one of the *TARGET_BRANCH values. Found:" |
Sean Dague | 9f20ea1 | 2014-11-17 15:14:49 -0500 | [diff] [blame] | 22 | echo $REFS |
| 23 | exit 1 |
| 24 | fi |