From 3b5456608a680a0cf7e488c7ddd250b6fef3eac1 Mon Sep 17 00:00:00 2001 From: Michael Lohmann Date: Tue, 3 Jan 2023 20:16:50 +0100 Subject: [PATCH] nixos-version: print error for missing revision to stderr --- 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 8727cd2f876f..39e34a3718cb 100644 --- a/nixos/modules/installer/tools/nixos-version.sh +++ b/nixos/modules/installer/tools/nixos-version.sh @@ -8,7 +8,7 @@ case "$1" in ;; --hash|--revision) if ! [[ @revision@ =~ ^[0-9a-f]+$ ]]; then - echo "$0: Nixpkgs commit hash is unknown" + echo "$0: Nixpkgs commit hash is unknown" >&2 exit 1 fi echo "@revision@"