mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-11 04:23:10 +00:00
Merge pull request #357 from mahesh-panchal/uppmax-hostname-fix
Execute sinfo with bash shell
This commit is contained in:
commit
1f872aea87
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ singularity {
|
|||
|
||||
def hostname = "r1"
|
||||
try {
|
||||
hostname = "sinfo --local -N -h | grep -m 1 -F -v CLUSTER: | cut -f1 -d' ' ".execute().text.trim()
|
||||
hostname = ['/bin/bash', '-c', 'sinfo --local -N -h | grep -m 1 -F -v CLUSTER: | cut -f1 -d" "'].execute().text.trim()
|
||||
} catch (java.io.IOException e) {
|
||||
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue