Skip to content

Commit

Permalink
Saving ASPNET_RUNTIME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren committed Oct 21, 2023
1 parent a396c2c commit 620a482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/etc/bf/init.d/11-version.nu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bf env load
# Get installed version of ASP.NET runtime
def main [] {
# get the installed version ot ASP.NET
let version = glob /usr/share/dotnet/shared/Microsoft.NETCore.App/*
let version = glob $"(bf env ASPNET_RUNTIME)/*"
if ($version | length) != 1 { bf write error "Unable to determine ASP.NET version." }

# output version
Expand Down
3 changes: 3 additions & 0 deletions overlay/tmp/install
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def main [] {
if not ($"($dotnet_dir)/($aspnet_dir)/($aspnet_build)" | path exists) {
bf write error " .. error installing ASP.NET runtime."
}

# save ASP.NET directory
bf env set ASPNET_RUNTIME $"($dotnet_dir)/($aspnet_dir)"
}

# Get the major version from a revision (i.e. get the first character)
Expand Down

0 comments on commit 620a482

Please sign in to comment.