From: Bastian Dehn Date: Fri, 17 Jul 2026 11:34:47 +0000 (+0200) Subject: change none output postrm no file X-Git-Tag: v1.1.35^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=58819b7d12084bbe1761ea16d63cefbb5941c60e;p=sane-kds-s2000w-net.git change none output postrm no file --- 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 {