]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix debian post scripts shellcheck issues
authorBastian Dehn <hhaalo@arcor.de>
Sun, 28 Jun 2026 06:26:32 +0000 (08:26 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 28 Jun 2026 06:26:32 +0000 (08:26 +0200)
src/debian/postinst
src/debian/postrm

index 37c842bb4753a34487cc52f6e0e0738af59e3591..1fa6c54b1aab2b96682401fb2e583fd02e9d515d 100755 (executable)
@@ -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" \
index c51bf14ddb73ed7ff3c97c3ac3a794935ea3c365..5744cc8fb92a7950ff509e14e4f274ca45489edc 100755 (executable)
@@ -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" \