From 1cf9bcaa3f84e3058a8b48ef36f97d8dee841df6 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Thu, 18 Aug 2016 17:10:52 +0200 Subject: [PATCH] zfs: print the output of the zpool command (if any) when it succeeds --- nixos/modules/tasks/filesystems/zfs.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 3149c860f301..4ff3ffc74b16 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -254,12 +254,11 @@ in echo -n . trial=$(($trial + 1)) if [[ $trial -eq 60 ]]; then - echo - echo "$msg" break fi done echo + if [[ -n "$msg" ]]; then echo "$msg"; fi '') rootPools)); };