mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
release-checks: remove unnecessary escape
This commit is contained in:
parent
8ef54ae956
commit
cc2a3d3904
@ -18,7 +18,7 @@ pkgs.runCommand "nixpkgs-release-checks"
|
|||||||
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
|
echo 'abort "Illegal use of <nixpkgs> in Nixpkgs."' > $TMPDIR/barf.nix
|
||||||
|
|
||||||
# Make sure that Nixpkgs does not use <nixpkgs>.
|
# 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
|
if [[ -n $badFiles ]]; then
|
||||||
echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
|
echo "Nixpkgs is not allowed to use <nixpkgs> to refer to itself."
|
||||||
echo "The offending files: $badFiles"
|
echo "The offending files: $badFiles"
|
||||||
|
Loading…
Reference in New Issue
Block a user