zfs: print the output of the zpool command (if any) when it succeeds

+1 -2
+1 -2
nixos/modules/tasks/filesystems/zfs.nix
··· 254 254 echo -n . 255 255 trial=$(($trial + 1)) 256 256 if [[ $trial -eq 60 ]]; then 257 - echo 258 - echo "$msg" 259 257 break 260 258 fi 261 259 done 262 260 echo 261 + if [[ -n "$msg" ]]; then echo "$msg"; fi 263 262 '') rootPools)); 264 263 }; 265 264