1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

shellcheck fix: tests/functional/user-envs-migration.sh

This commit is contained in:
Farid Zakaria 2025-09-30 20:20:13 -07:00
parent 799cd62ec8
commit 359e73a6db
2 changed files with 1 additions and 1 deletions

View file

@ -106,7 +106,6 @@
enable = true; enable = true;
excludes = [ excludes = [
# We haven't linted these files yet # We haven't linted these files yet
''^tests/functional/user-envs-migration\.sh$''
''^tests/functional/user-envs-test-case\.sh$'' ''^tests/functional/user-envs-test-case\.sh$''
''^tests/functional/user-envs\.builder\.sh$'' ''^tests/functional/user-envs\.builder\.sh$''
''^tests/functional/user-envs\.sh$'' ''^tests/functional/user-envs\.sh$''

View file

@ -29,6 +29,7 @@ nix-env -f user-envs.nix -i bar-0.1
# Migrate to the new profile dir, and ensure that everythings there # Migrate to the new profile dir, and ensure that everythings there
export PATH="$PATH_WITH_NEW_NIX" export PATH="$PATH_WITH_NEW_NIX"
nix-env -q # Trigger the migration nix-env -q # Trigger the migration
# shellcheck disable=SC2235
( [[ -L ~/.nix-profile ]] && \ ( [[ -L ~/.nix-profile ]] && \
[[ $(readlink ~/.nix-profile) == ~/.local/share/nix/profiles/profile ]] ) || \ [[ $(readlink ~/.nix-profile) == ~/.local/share/nix/profiles/profile ]] ) || \
fail "The nix profile should point to the new location" fail "The nix profile should point to the new location"