check_sym: adjust logic not to exit 1 in the default dynamic mode
authortb <tb@openbsd.org>
Tue, 3 Sep 2024 08:49:16 +0000 (08:49 +0000)
committertb <tb@openbsd.org>
Tue, 3 Sep 2024 08:49:16 +0000 (08:49 +0000)
ok guenther

lib/check_sym

index 8333b96..68e268a 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/ksh
-#  $OpenBSD: check_sym,v 1.12 2024/08/15 01:25:13 guenther Exp $
+#  $OpenBSD: check_sym,v 1.13 2024/09/03 08:49:16 tb Exp $
 #
 # Copyright (c) 2016,2019,2022 Philip Guenther <guenther@openbsd.org>
 #
@@ -425,7 +425,7 @@ done
 
 {
        echo "$old --> $new"
-       $dynamic && dynamic_output
-       $static  && static_output
+       ! $dynamic || dynamic_output
+       ! $static  || static_output
 }