Closed Scoindy closed 4 years ago
looks like the output of zpool status has changed slightly on the version of BSD that comes with 12,0; statusDate just needs to chnage slightly from:
scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $17"-"$14"-"$15"_"$16}')"
to
scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $15"-"$12"-"$13"_"$14}')"
thanks for the script BTW!
sorry just noticed this is a duplicate.
looks like the output of zpool status has changed slightly on the version of BSD that comes with 12,0; statusDate just needs to chnage slightly from:
scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $17"-"$14"-"$15"_"$16}')"
to
scrubDate="$(echo "$statusOutput" | grep "scan" | awk '{print $15"-"$12"-"$13"_"$14}')"
thanks for the script BTW!