diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2012-07-07 20:11:06 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2012-07-07 20:11:06 +0400 |
commit | 77b03dbc7112cd20bcebce3f0b7e288f4bc12791 (patch) | |
tree | ab2b1442980975a7a11f035032cd72bf49640ffb /pkgs | |
parent | 631a59e449c878689cc59c23cdf932cd7a695461 (diff) | |
download | nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar.gz nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar.bz2 nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar.lz nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar.xz nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.tar.zst nixlib-77b03dbc7112cd20bcebce3f0b7e288f4bc12791.zip |
update-upstream-data: Fix a small bug
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/build-support/upstream-updater/attrset-to-dir.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/upstream-updater/attrset-to-dir.sh b/pkgs/build-support/upstream-updater/attrset-to-dir.sh index 0e0c50e12598..2d99ef110a1c 100755 --- a/pkgs/build-support/upstream-updater/attrset-to-dir.sh +++ b/pkgs/build-support/upstream-updater/attrset-to-dir.sh @@ -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 |