Skip to content

Commit

Permalink
Account for the possibility that EESSI_PREFIX isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Apr 2, 2024
1 parent b59d327 commit 9ff3cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_lmodsitepackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
-- hook.register("load", arch_specific_load_hook)
-- get path to to architecture independent SitePackage.lua
local prefixHostInjections = string.gsub(os.getenv('EESSI_PREFIX'), 'versions', 'host_injections')
local prefixHostInjections = string.gsub(os.getenv('EESSI_PREFIX') or "", 'versions', 'host_injections')
local hostSitePackage = prefixHostInjections .. "/.lmod/SitePackage.lua"
-- If the file exists, run it
Expand Down

0 comments on commit 9ff3cfa

Please sign in to comment.