Skip to content

Commit 18aea8f

Browse files
committed
Only parse the first line of GEMMA_PASSWORD_CMD
1 parent 1e1cce2 commit 18aea8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rnaseq_pipeline/gemma.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ def _get_password(self):
3232
if 'GEMMA_PASSWORD' in os.environ:
3333
return os.environ['GEMMA_PASSWORD']
3434
elif 'GEMMA_PASSWORD_CMD' in os.environ:
35-
proc = subprocess.run(os.environ['GEMMA_PASSWORD_CMD'], shell=True, check=True, text=True, stdout=subprocess.PIPE)
36-
return proc.stdout
35+
proc = subprocess.run(os.environ['GEMMA_PASSWORD_CMD'], shell=True, check=True, text=True,
36+
stdout=subprocess.PIPE)
37+
return proc.stdout.splitlines()[0]
3738
else:
3839
return getpass()
3940

0 commit comments

Comments
 (0)