From 2c35d0d18eed6807de56e88f7d5d5dcaaf8863fc Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 28 Jun 2026 08:26:32 +0200 Subject: [PATCH] fix debian post scripts shellcheck issues --- src/debian/postinst | 3 ++- src/debian/postrm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/debian/postinst b/src/debian/postinst index 37c842b..1fa6c54 100755 --- a/src/debian/postinst +++ b/src/debian/postinst @@ -16,13 +16,14 @@ main() { local DLLCONFIG="/etc/sane.d/dll.conf" local ENTRY="kds_s2000w_net" + local entrycheck= [ -f "$DLLCONFIG" ] \ || errlog "ERROR: $DLLCONFIG does not exist" \ || return 0 echo "found $DLLCONFIG" - local entrycheck=$(cat $DLLCONFIG | grep $ENTRY) + entrycheck=$(cat $DLLCONFIG | grep $ENTRY) [ -n "$entrycheck" ] \ && echo "$ENTRY entry exists in $DLLCONFIG" \ diff --git a/src/debian/postrm b/src/debian/postrm index c51bf14..5744cc8 100755 --- a/src/debian/postrm +++ b/src/debian/postrm @@ -16,13 +16,14 @@ main() { local DLLCONFIG="/etc/sane.d/dll.conf" local ENTRY="kds_s2000w_net" + local entrycheck= [ -f "$DLLCONFIG" ] \ || errlog "ERROR: $DLLCONFIG does not exist" \ || return 0 echo "found $DLLCONFIG" - local entrycheck=$(cat $DLLCONFIG | grep $ENTRY) + entrycheck=$(cat $DLLCONFIG | grep $ENTRY) [ -z "$entrycheck" ] \ && echo "$ENTRY entry does not exists in $DLLCONFIG" \ -- 2.47.3