From fb05afd78dc63fa93626ee51330c69559754b44d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Feb 2020 16:32:59 +0100 Subject: [PATCH] Doh --- nixos/modules/installer/tools/nixos-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-version.sh b/nixos/modules/installer/tools/nixos-version.sh index bde6c9c30030..fb0fe26116a6 100644 --- a/nixos/modules/installer/tools/nixos-version.sh +++ b/nixos/modules/installer/tools/nixos-version.sh @@ -6,7 +6,7 @@ case "$1" in exit 1 ;; --hash|--revision) - if ! [[ @revision@ =~ /[0-9a-f]+/ ]]; then + if ! [[ @revision@ =~ ^[0-9a-f]+$ ]]; then echo "$0: Nixpkgs commit hash is unknown" exit 1 fi