From 7fc329038720b85686f883177f6e7073e815bae8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 29 Dec 2023 19:26:20 +0000 Subject: Remove only up to -c in bin/genenetwork2. For example, in bin/genenetwork2 etc/default_settings.py -c -m pytest, remove only up to -c. --- bin/genenetwork2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/genenetwork2 b/bin/genenetwork2 index 09b3415e..2ac83c7f 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -160,9 +160,9 @@ set|grep TMPDIR # Now handle command parameter -c which runs python if [ "$1" = '-c' ] ; then echo PYTHONPATH="${PYTHONPATH}" - shift ; shift - echo "RUNNING COMMAND ${cmd} ${*}" - python $cmd $* + shift + echo "RUNNING COMMAND python ${*}" + python $* exit $? fi -- cgit v1.2.3