From 5b80eddbee48afe4e32d303eb83d18953fe6fe21 Mon Sep 17 00:00:00 2001 From: afresh1 Date: Thu, 28 Sep 2023 00:52:16 +0000 Subject: [PATCH] Exit successfully at the end of fw_update Otherwise the exit status depends on whether we kept any firmware. Reported by Brian Conway The clean solution suggested by guenther@ --- usr.sbin/fw_update/fw_update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index 0a773cd379e..dbfeca8d147 100644 --- a/usr.sbin/fw_update/fw_update.sh +++ b/usr.sbin/fw_update/fw_update.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_update.sh,v 1.48 2023/09/28 00:45:22 afresh1 Exp $ +# $OpenBSD: fw_update.sh,v 1.49 2023/09/28 00:52:16 afresh1 Exp $ # # Copyright (c) 2021,2023 Andrew Hewus Fresh # @@ -763,3 +763,5 @@ done [ "$unregister" ] && status "; unregister ${unregister:#,}" [ "$kept" ] && status "; keep ${kept:#,}" + +exit 0 -- 2.20.1