{
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" \
{
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" \