Skip to content

Commit

Permalink
fix a bug when there is no issm
Browse files Browse the repository at this point in the history
  • Loading branch information
enigne committed Jan 11, 2024
1 parent ae3e12f commit de58a04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/usr/utils.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#utils
function issmdir() #{{{
issmdir = ENV["ISSM_DIR"]
if haskey(ENV, "ISSM_DIR")
issmdir = ENV["ISSM_DIR"]
else
println(io, "Could not determine the location of ISSM, use dJUICE path instead")
return "./"
end

if isempty(issmdir)
println(io, "Could not determine the location of ISSM, use dJUICE path instead")
return ENV["./"]
return "./"
else
return issmdir
end
Expand Down

0 comments on commit de58a04

Please sign in to comment.