housekeeping: shellcheck for tests/functional/ca/nix-copy.sh

This commit is contained in:
Cameron Dart 2024-06-03 13:54:41 -07:00 committed by John Ericson
parent 195c0da849
commit deacc421eb

View File

@ -15,13 +15,13 @@ testOneCopy () {
rm -rf "$REMOTE_STORE_DIR" rm -rf "$REMOTE_STORE_DIR"
attrPath="$1" attrPath="$1"
nix copy --to $REMOTE_STORE "$attrPath" --file ./content-addressed.nix nix copy --to "$REMOTE_STORE" "$attrPath" --file ./content-addressed.nix
ensureCorrectlyCopied "$attrPath" ensureCorrectlyCopied "$attrPath"
# Ensure that we can copy back what we put in the store # Ensure that we can copy back what we put in the store
clearStore clearStore
nix copy --from $REMOTE_STORE \ nix copy --from "$REMOTE_STORE" \
--file ./content-addressed.nix "$attrPath" \ --file ./content-addressed.nix "$attrPath" \
--no-check-sigs --no-check-sigs
} }