From: Bastian Dehn Date: Sun, 28 Jun 2026 06:26:32 +0000 (+0200) Subject: fix debian post scripts shellcheck issues X-Git-Tag: v1.1.34^2~5^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2c35d0d18eed6807de56e88f7d5d5dcaaf8863fc;p=sane-kds-s2000w-net.git fix debian post scripts shellcheck issues --- 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" \