tool: fix state corruption by upgrade

This commit is contained in:
Julie B. 2021-12-28 16:52:42 +01:00
parent 1a6ab7ab3e
commit 3ce25f7d79

View File

@ -39,7 +39,7 @@ function install_profile {
function upgrade_profile {
[[ $# -eq 1 ]] || die "$FUNCNAME: wrong number of arguments!"
local guest_name="$1"
run_nix profile upgrade --profile "$guests_dir/$guest_name" ||
run_nix profile upgrade --profile "$profiles_dir/$guest_name" ||
die "unable to upgrade $guest_name!" $?
}