mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
update-upstream-data: Fix a small bug
This commit is contained in:
parent
631a59e449
commit
77b03dbc71
|
@ -1,8 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
[ -n "$2" ] && NIXPKGS_ALL="$2";
|
||||
[ -z "$NIXPKGS_ALL" ] && [ -f "/etc/nixos/nixpkgs" ] && NIXPKGS_ALL="/etc/nixos/nixpkgs";
|
||||
[ -z "$NIXPKGS_ALL" ] && [ -f "$HOME/nixpkgs" ] && NIXPKGS_ALL="$HOME/nixpkgs";
|
||||
[ -z "$NIXPKGS_ALL" ] && [ -d "/etc/nixos/nixpkgs" ] && NIXPKGS_ALL="/etc/nixos/nixpkgs";
|
||||
[ -z "$NIXPKGS_ALL" ] && [ -d "$HOME/nixpkgs" ] && NIXPKGS_ALL="$HOME/nixpkgs";
|
||||
[ -z "$NIXPKGS_ALL" ] && {
|
||||
echo "Cannot find Nixpkgs source. Please specify it via NIXPKGS_ALL or second command line argument"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue