From 7a58ab019b250a66287a1c91ba3693fef3e15b77 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Mon, 30 Apr 2018 21:26:24 -0500 Subject: [PATCH] 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 --- fsck/xfs_fsck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;; -- 2.47.2