We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f558ac5 commit b27dd6cCopy full SHA for b27dd6c
1 file changed
misc/scripts/prepare-db-upgrade.sh
@@ -107,14 +107,7 @@ downgrade_root="${qldir}/${lang}/downgrades"
107
108
check_hash_valid()
109
{
110
- len=0
111
- checking="$2"
112
- while [ "x${checking}" != "x" ]; do
113
- len=$((len + 1))
114
- checking="${checking%?}"
115
- done
116
-
117
- if [ ${len} -ne 40 ]; then
+ if [ ${#2} -ne 40 ]; then
118
echo "Did not get expected $1 hash: $2" >&2
119
exit 2
120
fi
0 commit comments