Skip to content

Commit 0cafae8

Browse files
committed
subprocess instead of capture
1 parent 9f22039 commit 0cafae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/modules/EESSI/2023.06.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ whatis("URL: https://www.eessi.io/docs/")
1212
conflict("EESSI")
1313
local eessi_version = myModuleVersion()
1414
local eessi_repo = "/cvmfs/software.eessi.io"
15-
if (capture("uname -m"):gsub("\n$","") == "riscv64") then
15+
if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
1616
eessi_version = os.getenv("EESSI_VERSION_OVERRIDE") or "20240402"
1717
eessi_repo = "/cvmfs/riscv.eessi.io"
1818
LmodMessage("RISC-V architecture detected, but there is no RISC-V support yet in the production repository.\n" ..

0 commit comments

Comments
 (0)