remote env pessimization
This commit is contained in:
@@ -21,9 +21,9 @@ t2=$(stat --format=%Z flake.lock 2>/dev/null || printf 0)
|
||||
t3=$(stat --format=%Z .direnv/flake-remote-devshell-profile 2>/dev/null || printf 0)
|
||||
if [[ "$t1" -gt "$t3" || "$t2" -gt "$t3" ]]; then
|
||||
mkdir -p .direnv/
|
||||
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env --profile ".direnv/flake-remote-devshell-profile" "$flake_shell")"
|
||||
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env --profile ".direnv/flake-remote-devshell-profile" "$flake_shell" --option access-tokens '')"
|
||||
else
|
||||
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env ".direnv/flake-remote-devshell-profile")"
|
||||
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env ".direnv/flake-remote-devshell-profile" --option access-tokens '')"
|
||||
fi
|
||||
unset t1 t2 t3 flake_shell
|
||||
|
||||
|
||||
Reference in New Issue
Block a user