]> git.donarmstrong.com Git - uiuc_igb_scripts.git/blobdiff - dqsub
fix $? test for batch option
[uiuc_igb_scripts.git] / dqsub
diff --git a/dqsub b/dqsub
index 571bc281cd88c45827ae35fa7672844b66a98875..d9963d33d4c944c02d6e3320e77d325cac474bdc 100755 (executable)
--- 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'