Skip to content

Commit

Permalink
use subprocess instead of capture
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Dec 10, 2024
1 parent b643995 commit c738b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/modules/EESSI/2023.06.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ whatis("URL: https://www.eessi.io/docs/")
conflict("EESSI")
local eessi_version = myModuleVersion()
local eessi_repo = "/cvmfs/software.eessi.io"
if (capture("uname -m"):gsub("\n$","") == "riscv64") then
if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
eessi_version = os.getenv("EESSI_VERSION_OVERRIDE") or "20240402"
eessi_repo = "/cvmfs/riscv.eessi.io"
LmodMessage("RISC-V architecture detected, but there is no RISC-V support yet in the production repository.\n" ..
Expand Down

0 comments on commit c738b64

Please sign in to comment.