1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

ctdb-tests: Reformat script

Samba is reformatting shell scripts using

  shfmt -w -p -i 0 -fn

so update this one before editing.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2022-03-18 10:53:45 +11:00 committed by Amitay Isaacs
parent 8458449ddf
commit a43a1ebe51

View File

@ -37,6 +37,7 @@ systemd-*)
*)
echo "Internal error"
exit 1
;;
esac
;;
@ -65,12 +66,14 @@ sysvinit-*)
*)
echo "Internal error"
exit 1
;;
esac
;;
*)
echo "Internal error"
exit 1
;;
esac
# Override for unit testing
@ -129,6 +132,7 @@ basic_stop ()
;;
*)
usage
;;
esac
}
@ -155,6 +159,7 @@ basic_start ()
;;
*)
usage
;;
esac
}
@ -201,6 +206,7 @@ service_stop ()
;;
*)
usage
;;
esac
}
@ -265,6 +271,7 @@ service_start ()
;;
*)
usage
;;
esac
}
@ -330,7 +337,7 @@ nfs_monitor_list_shares ()
_cache_file="${CTDB_NFS_CALLOUT_STATE_DIR}/list_shares_cache"
# -nt operator is well supported in Linux: dash, bash, ksh, ...
# shellcheck disable=SC2039,SC3013
if [ ! -r "$nfs_exports_file" ] || [ ! -r "$_cache_file" ] || \
if [ ! -r "$nfs_exports_file" ] || [ ! -r "$_cache_file" ] ||
[ "$nfs_exports_file" -nt "$_cache_file" ]; then
mkdir -p "$CTDB_NFS_CALLOUT_STATE_DIR"
# We could just use the contents of $nfs_exports_file.
@ -394,4 +401,5 @@ case "$1" in
;;
*)
usage
;;
esac