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:
parent
535b4d398b
commit
d8432fe081
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue