1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/tests/functional/flakes/prefetch.sh
2025-09-29 09:14:41 -07:00

8 lines
223 B
Bash
Executable file

#!/usr/bin/env bash
source common.sh
# Test symlinks in zip files (#10649).
path=$(nix flake prefetch --json file://"$(pwd)"/tree.zip | jq -r .storePath)
[[ $(cat "$path"/foo) = foo ]]
[[ $(readlink "$path"/bar) = foo ]]