mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Simplify bash script
This commit is contained in:
@@ -66,14 +66,7 @@ upgrade_root="upgrades"
|
||||
|
||||
check_hash_valid()
|
||||
{
|
||||
len=0
|
||||
checking="$2"
|
||||
while [ "x${checking}" != "x" ]; do
|
||||
len=$((len + 1))
|
||||
checking="${checking%?}"
|
||||
done
|
||||
|
||||
if [ ${len} -ne 40 ]; then
|
||||
if [ ${#2} -ne 40 ]; then
|
||||
echo "Did not get expected $1 hash: $2" >&2
|
||||
exit 2
|
||||
fi
|
||||
@@ -110,4 +103,4 @@ Created upgrade directory here:
|
||||
Please update:
|
||||
${upgradedir}/upgrade.properties
|
||||
with appropriate upgrade instructions
|
||||
EOF
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user