From 39d13ea2cfb4e7afdb8fc075801d86538c1f3a38 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 25 Feb 2017 22:33:08 +0100 Subject: [PATCH] Minor output fixes Requires #23190 --- nixos/modules/installer/tools/nixos-version.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nixos/modules/installer/tools/nixos-version.sh b/nixos/modules/installer/tools/nixos-version.sh index 75316e0268480..e0f218a086b89 100644 --- a/nixos/modules/installer/tools/nixos-version.sh +++ b/nixos/modules/installer/tools/nixos-version.sh @@ -91,7 +91,7 @@ if [[ "$all" = "1" ]] || [[ "$id" = "1" ]]; then if [[ "$short" = "0" ]]; then printf "Distributor ID:\t" fi - echo $ID + echo $NAME fi if [[ "$all" = "1" ]] || [[ "$description" = "1" ]]; then @@ -115,16 +115,14 @@ if [[ "$all" = "1" ]] || [[ "$revision" = "1" ]]; then fi # TODO: echo "@nixosRevision@"? # Revision comes from: VERSION="16.09.git.effc189 (Flounder)" -> effc189 - echo $(echo $VERSION | awk '{print $1}' | rev | cut -d. -f1 | rev) + echo $(echo $VERSION_ID | rev | cut -d. -f1 | rev) fi if [[ "$all" = "1" ]] || [[ "$codename" = "1" ]]; then if [[ "$short" = "0" ]]; then printf "Codename:\t" fi - - # Codename comes from: VERSION="16.09.git.effc189 (Flounder)" -> Flounder - echo $(echo $VERSION | awk '{print $2}' | tr -d \(\)) + echo $(echo $VERSION_CODENAME) fi exit 0