From: Don Armstrong <don@donarmstrong.com>
Date: Wed, 8 Feb 2017 18:58:20 +0000 (-0800)
Subject: fix $? test for batch option
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8639e736d6c9a65bd464ca834940fb015566aa69;p=uiuc_igb_scripts.git

fix $? test for batch option
---

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'