From 9db8f51ffc8d8b8e1c96ed9c17d08a4a5d28b096 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 22 May 2019 22:53:34 +0200 Subject: check-kernel.in: declare is not in posix - remove it --- check-kernel.in | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-70-g09d2