From 58819b7d12084bbe1761ea16d63cefbb5941c60e Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 17 Jul 2026 13:34:47 +0200 Subject: [PATCH] change none output postrm no file --- src/debian/postrm | 4 +--- tests/postrm.bats | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/debian/postrm b/src/debian/postrm index b39374d..b3c3171 100755 --- a/src/debian/postrm +++ b/src/debian/postrm @@ -3,9 +3,7 @@ set -e find_config() { - [ ! -f "$DLLCONFIG" ] \ - && echo "WARNING: $DLLCONFIG does not exist" \ - && return 1 + [ -f "$DLLCONFIG" ] || return 1 echo "found $DLLCONFIG" } diff --git a/tests/postrm.bats b/tests/postrm.bats index 6d529ce..53dbb55 100755 --- a/tests/postrm.bats +++ b/tests/postrm.bats @@ -18,7 +18,7 @@ teardown() { run ../src/debian/postrm assert_success - assert_output "WARNING: ../build/dll-not-exists.conf does not exist" + assert_output "" } @test "delete one entry kds_s2000w_net from dll.conf { -- 2.47.3