make announce.sh nicer to use by hand

Periodically when we have an announcement failure someone has to run
announce.sh by hand. This change makes that a little nicer by waiting
until after the argument validation is done to "set -x" so that the
usage message for missing arguments is printed more cleanly.

Change-Id: I2081b28315fd2272399b10e98e7bd390f6bc970e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-07-25 07:41:16 -04:00
parent 535b4d398b
commit d8432fe081
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
set -ex
set -e
if [ $# -lt 1 ]; then
echo "Usage: $0 path-to-repository [version]"
@ -26,6 +26,8 @@ if [ $# -lt 1 ]; then
exit 2
fi
set -x
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $TOOLSDIR/functions