From c295497c2f940897116b449883ecaaec20fa8dae Mon Sep 17 00:00:00 2001
From: Floreal Cabanettes <floreal.cabanettes@inra.fr>
Date: Thu, 29 Jun 2017 16:11:44 +0200
Subject: [PATCH] Returns exit status

---
 build_pop.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build_pop.py b/build_pop.py
index 7c6e70e..79d17ef 100755
--- a/build_pop.py
+++ b/build_pop.py
@@ -380,7 +380,7 @@ def init(output_dir, force_outputdir, sv_list, nstretches, nb_inds, reference, p
         print("")
     except InputException as e:
         eprint(e)
-        return False
+        return -1
     if quiet or confirm(deletions, sv_sim.variants):
         genotypes_for_inds = build_genotypes_vcf_list(deletions, output_vcf, haploid, force_polymorphism, nb_inds,
                                                       tmp_dir, prg_path)
@@ -390,6 +390,7 @@ def init(output_dir, force_outputdir, sv_list, nstretches, nb_inds, reference, p
         print("DONE!\n")
     else:
         print("Aborted!\n")
+    return 0
 
 
 def main():
-- 
GitLab