mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 01:41:55 +00:00
Import Michal Čihař ( nijel ) patch:
Tescases fail with POSIX /bin/sh, attached patch fixes it
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
ndicts=`../src/sdcv -l | wc -l`
|
||||
let ndicts=ndicts-1
|
||||
ndicts=$(($ndicts-1))
|
||||
ncom=`find /usr/share/stardict/dic -name "*.ifo" | wc -l`
|
||||
nspe=`find "${HOME}"/.stardict/dic -name "*.ifo" | wc -l`
|
||||
let nmy=ncom+nspe
|
||||
nmy=$(($ncom+$nspe))
|
||||
|
||||
if [ $nmy -ne $ndicts ]; then
|
||||
echo "should be: $nmy, we have: $ndicts" >&2
|
||||
|
||||
Reference in New Issue
Block a user