summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-22 22:53:34 +0200
committerErich Eckner <git@eckner.net>2019-05-22 22:53:34 +0200
commit9db8f51ffc8d8b8e1c96ed9c17d08a4a5d28b096 (patch)
treee711fa10fddf991d544f5482fdd09c6ce74ddc71
parent7ee74cc1d31c4d3e7bc8d8d65222fca96cc3a7ab (diff)
downloadcheck-kernel-9db8f51ffc8d8b8e1c96ed9c17d08a4a5d28b096.tar.xz
check-kernel.in: declare is not in posix - remove it
-rw-r--r--check-kernel.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index d9c3717..17090d9 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -140,8 +140,7 @@ else
"${installed}" \
"${running}"
if ${reboot}; then
- if declare -F reboot_check_hook >/dev/null \
- && ! reboot_check_hook; then
+ if ! reboot_check_hook; then
>&2 printf 'reboot_check_hook() failed.\n'
exit 1
fi