From 24467cc81616710af5943f5d431b2ed97e87213e Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 23 Jul 2019 13:21:47 +0200 Subject: [PATCH] fix exit code --- scripts/qgis-plugin-ci | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/qgis-plugin-ci b/scripts/qgis-plugin-ci index 50a1e4a6..cf732178 100755 --- a/scripts/qgis-plugin-ci +++ b/scripts/qgis-plugin-ci @@ -68,15 +68,17 @@ if __name__ == "__main__": arg_dict = yaml.safe_load(open(".qgis-plugin-ci")) parameters = Parameters(arg_dict) + # PACKAGE if args.command == 'package': - success = release( + release( parameters, release_version=args.release_version, transifex_token=args.transifex_token ) + # RELEASE elif args.command == 'release': - success = release( + release( parameters, release_version=args.release_version, transifex_token=args.transifex_token, @@ -85,12 +87,12 @@ if __name__ == "__main__": osgeo_username=args.osgeo_username, osgeo_password=args.osgeo_password ) - if not success: - exit_val = 1 + + # TRANSLATION PULL elif args.command == 'pull-translation': - success = Translation(parameters, args.transifex_token).pull() - if not success: - exit_val = 1 + Translation(parameters, args.transifex_token).pull() + + # TRANSLATION PUSH elif args.command == 'push-translation': t = Translation(parameters, args.transifex_token) t.update_strings()