From: Eric Sandeen Date: Tue, 1 May 2018 02:26:24 +0000 (-0500) Subject: fsck.xfs: do not use 'function' keyword X-Git-Tag: v4.16.1~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a58ab019b250a66287a1c91ba3693fef3e15b77;p=thirdparty%2Fxfsprogs-dev.git fsck.xfs: do not use 'function' keyword It was pointed out on irc that fsck.xfs uses the 'function' keyword although it invokes /bin/sh - 'function' is a bashism. It's not needed here, so just remove it. Fixes: 04a2d5d ("fsck.xfs: allow forced repairs using xfs_repair") Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/fsck/xfs_fsck.sh b/fsck/xfs_fsck.sh index c9fc3eb35..1916c07e2 100755 --- a/fsck/xfs_fsck.sh +++ b/fsck/xfs_fsck.sh @@ -6,7 +6,7 @@ NAME=$0 # get the right return code for fsck -function repair2fsck_code() { +repair2fsck_code() { case $1 in 0) return 0 # everything is ok ;;