]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
fsck.xfs: do not use 'function' keyword
authorEric Sandeen <sandeen@redhat.com>
Tue, 1 May 2018 02:26:24 +0000 (21:26 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 1 May 2018 02:26:24 +0000 (21:26 -0500)
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 <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
fsck/xfs_fsck.sh

index c9fc3eb35fc9281b84faedd750266d5b5d36a80a..1916c07e252d75ee5e0f655a520c019f533ef205 100755 (executable)
@@ -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
                ;;