diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-05 03:52:30 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-05 05:31:55 +0200 |
commit | 7d2fa41ca12a1724229ef8285af1895313e15c5f (patch) | |
tree | 0fbd900064b89eccb0328f2ea7a94ab70a6b3111 /bin | |
parent | 0ae09b2678778ccbf74d33390fa9f572ddca888f (diff) |
updater: abort if there are not enough command line parameters
Change-Id: Ifb982aa4a0c496e1e21f762bd4e20241e41d4ea2
Reviewed-on: https://gerrit.libreoffice.org/40780
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update/create_build_config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/update/create_build_config.py b/bin/update/create_build_config.py index 8d6bf5206ce8..b21735af2c97 100755 --- a/bin/update/create_build_config.py +++ b/bin/update/create_build_config.py @@ -23,6 +23,7 @@ def update_all_url_entries(data, **kwargs): def main(argv): if len(argv) < 7: print("Usage: create_build_config.py $PRODUCTNAME $VERSION $BUILDID $PLATFORM $TARGETDIR $UPDATE_CONFIG") + sys.exit(1) config = parse_config(argv[6]) |