From 528c773312db0c29d7b107d868861ba263b36e19 Mon Sep 17 00:00:00 2001
From: jgugliel <julien.guglielmini@pasteur.fr>
Date: Tue, 14 Jun 2022 13:51:26 +0200
Subject: [PATCH] Added a warning when -f is used outside sbatch

---
 wGRR | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wGRR b/wGRR
index 0b57da6..4767a92 100755
--- a/wGRR
+++ b/wGRR
@@ -169,6 +169,9 @@ fi
 printf "%-10s  --  %s\n" "[INFO]" "wGRR version ${VERSION}" | tee -a ${OUT}.wgrr.log
 
 if [[ $BATCHFLAG == 0 ]] ; then
+	if [[ $FAST == 1 ]] ; then
+		printf "%-10s  --  %s\n" "[WARNING]" "The fast flag (-f) is useless when not using sbatch"  | tee -a ${OUT}.wgrr.log
+	fi
 	if [[ $THREADS -gt $(nproc) ]] ; then
 		printf "%-10s  --  %s\n" "[ERROR]" "You required $THREADS threads but your machine has $(nproc) cores."  | tee -a ${OUT}.wgrr.log
 		exit 1
-- 
GitLab