1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-06 17:11:00 +01:00

shellcheck fix: tests/functional/local-overlay-store/optimise-inner.sh

This commit is contained in:
Farid Zakaria 2025-09-28 20:29:35 -07:00
parent dbb53de9d3
commit 283a9c4c5a
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,6 @@
''^tests/functional/local-overlay-store/delete-refs\.sh$''
''^tests/functional/local-overlay-store/gc-inner\.sh$''
''^tests/functional/local-overlay-store/gc\.sh$''
''^tests/functional/local-overlay-store/optimise-inner\.sh$''
''^tests/functional/logging\.sh$''
''^tests/functional/misc\.sh$''
''^tests/functional/multiple-outputs\.sh$''

View file

@ -38,8 +38,8 @@ overlayPath="$storeBRoot/nix/store/$dupFilename"
lowerInode=$(stat -c %i "$lowerPath")
upperInode=$(stat -c %i "$upperPath")
overlayInode=$(stat -c %i "$overlayPath")
[[ $upperInode == $overlayInode ]]
[[ $upperInode != $lowerInode ]]
[[ $upperInode == "$overlayInode" ]]
[[ $upperInode != "$lowerInode" ]]
# Run optimise to deduplicate store paths
nix-store --store "$storeB" --optimise

View file

@ -1,3 +1,4 @@
# shellcheck shell=bash
source common.sh
source ../common/init.sh