Date: Tue, 03 Sep 2019 14:05:56 -0000 From: Kurt Lidl <lidl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r345684 - stable/12/libexec/rc/rc.d Message-ID: <201903291303.x2TD36Zi002466@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lidl Date: Fri Mar 29 13:03:05 2019 New Revision: 345684 URL: https://svnweb.freebsd.org/changeset/base/345684 Log: MFC r345005: Remove an unneeded 'tail -n 1' from a pipeline in growfs rc script Modified: stable/12/libexec/rc/rc.d/growfs Directory Properties: stable/12/ (props changed) Modified: stable/12/libexec/rc/rc.d/growfs ============================================================================== --- stable/12/libexec/rc/rc.d/growfs Fri Mar 29 11:59:54 2019 (r345683) +++ stable/12/libexec/rc/rc.d/growfs Fri Mar 29 13:03:05 2019 (r345684) @@ -57,7 +57,7 @@ growfs_start () ;; zfs) pool=${FSDEV%%/*} - rootdev=$(zpool list -v $pool | tail -n 1 | awk '{ print $1 }') + rootdev=$(zpool list -v $pool | awk 'END { print $1 }') ;; *) echo "Don't know how to grow root filesystem type: $FSTYPE"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903291303.x2TD36Zi002466>