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:
@@ -2,11 +2,11 @@
|
||||
|
||||
unset SDCV_PAGER
|
||||
have=`../src/sdcv --data-dir ./ -l | wc -l`
|
||||
let have=have-1
|
||||
have=$(($have-1))
|
||||
ndicts=`find "${HOME}"/.stardict/dic -name "*.ifo" -print | wc -l`
|
||||
let ndicts=ndicts+1
|
||||
ndicts=$(($ndicts+1))
|
||||
if [ $have -ne $ndicts ]; then
|
||||
let ndicts=ndicts-1
|
||||
ndicts=$(($ndicts-1))
|
||||
echo "test failed: sdcv says: we have: $have, but really we have: $ndicts" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user