From 8639e736d6c9a65bd464ca834940fb015566aa69 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 8 Feb 2017 10:58:20 -0800 Subject: [PATCH] fix $? test for batch option --- dqsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dqsub b/dqsub index 571bc28..d9963d3 100755 --- a/dqsub +++ b/dqsub @@ -157,7 +157,7 @@ if ($options{interactive} and @ARGV) { if (not defined $options{batch}) { qx/which sbatch/; - if ($?) { + if ($? == 0) { $options{batch} = 'slurm' } else { $options{batch} = 'pbs' -- 2.39.2