release-checks: remove unnecessary escape

This commit is contained in:
K900 2024-01-12 10:28:42 +03:00
parent 8ef54ae956
commit cc2a3d3904

View file

@ -18,7 +18,7 @@ pkgs.runCommand "nixpkgs-release-checks"
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
# Make sure that Nixpkgs does not use <nixpkgs>.
badFiles=$(find $src/pkgs -type f -name '*.nix' -print | xargs grep -l '^[^#]*<nixpkgs\/' || true)
badFiles=$(find $src/pkgs -type f -name '*.nix' -print | xargs grep -l '^[^#]*<nixpkgs/' || true)
if [[ -n $badFiles ]]; then
echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
echo "The offending files: $badFiles"