Skip to content

Commit 928a16d

Browse files
committed
Support '1' as truthy value in SysEnv.getBool()
Signed-off-by: Edmund Miller <edmund.miller@seqera.io>
1 parent a5cbc3c commit 928a16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nf-commons/src/main/nextflow/SysEnv.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SysEnv {
5151

5252
static boolean getBool(String name, boolean defValue) {
5353
final result = get(name,String.valueOf(defValue))
54-
return Boolean.parseBoolean(result)
54+
return Boolean.parseBoolean(result) || result == '1'
5555
}
5656

5757
static Integer getInteger(String name, Integer defValue) {

0 commit comments

Comments
 (0)