aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2018-04-30 21:26:24 -0500
committerEric Sandeen <sandeen@redhat.com>2018-04-30 21:26:24 -0500
commit7a58ab019b250a66287a1c91ba3693fef3e15b77 (patch)
tree46c48f273e067e24cb04a0d77011188859cd8b0a
parent9048c8ba2bc22c1254892667be19d0d69fda2901 (diff)
downloadxfsprogs-dev-7a58ab019b250a66287a1c91ba3693fef3e15b77.tar.gz
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 <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rwxr-xr-xfsck/xfs_fsck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/xfs_fsck.sh b/fsck/xfs_fsck.sh
index c9fc3eb35f..1916c07e25 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
;;