aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2023-12-29 19:26:20 +0000
committerArun Isaac2023-12-29 19:26:44 +0000
commit7fc329038720b85686f883177f6e7073e815bae8 (patch)
treea002eafe461d2e754e78d476afda4a21e41e6bd8
parent204a308be0f741726b9a620d88fbc22b22124c81 (diff)
downloadgenenetwork2-7fc329038720b85686f883177f6e7073e815bae8.tar.gz
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.
-rwxr-xr-xbin/genenetwork26
1 files changed, 3 insertions, 3 deletions
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