]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
fsck: fix more bashisms
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 19:09:54 +0000 (14:09 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 31 May 2018 19:09:54 +0000 (14:09 -0500)
commite3f20e605cd6748a1d21cf7b92b77d9aa8a104a5
tree111463c79bc9d52ccfb50ff2ed02450c56c235b4
parent184798fd4401177040b022b6d18a26384810fb8c
fsck: fix more bashisms

command -v is a bashism, so we need to get rid of it.  The shell returns
an error code of 127 if it couldn't invoke xfs_repair, so teach
repair2fsck_code to deal with this.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
fsck/xfs_fsck.sh