Skip to content

Commit

Permalink
watchdog.sh: ShellCheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miabbott authored and nullr0ute committed Nov 22, 2022
1 parent 7a85379 commit e37257b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/lib/greenboot/check/required.d/02_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eo pipefail
source_configuration_file() {
GREENBOOT_CONFIGURATION_FILE=/etc/greenboot/greenboot.conf
if test -f "$GREENBOOT_CONFIGURATION_FILE"; then
# shellcheck source=etc/greenboot/greenboot.conf
source $GREENBOOT_CONFIGURATION_FILE
fi
}
Expand Down Expand Up @@ -54,7 +55,7 @@ if [ "${1}" != "--source-only" ]; then
echo "Watchdog check is disabled"
exit 0
fi

set_grace_period

SECONDS_IN_AN_HOUR=$((60 * 60))
Expand Down

0 comments on commit e37257b

Please sign in to comment.