mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
16 lines
348 B
Bash
Executable File
16 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PATH_TO_SDCV="$1"
|
|
ndicts=`"$PATH_TO_SDCV" -l | wc -l`
|
|
ndicts=$(($ndicts-1))
|
|
ncom=`find /usr/share/stardict/dic -name "*.ifo" | wc -l`
|
|
nspe=`find "${XDG_DATA_HOME:-$HOME/.local/share}"/stardict/dic -name "*.ifo" | wc -l`
|
|
nmy=$(($ncom+$nspe))
|
|
|
|
if [ $nmy -ne $ndicts ]; then
|
|
echo "should be: $nmy, we have: $ndicts" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|