mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 10:36:28 +00:00
17 lines
401 B
Bash
Executable File
17 lines
401 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for tool in bin/*; do
|
|
shasum=$(md5sum $tool)
|
|
util/update-modules $tool;
|
|
rc="$?"
|
|
if [ $? -ne 0 ]; then
|
|
echo "'util/update-modules $tool' exited with code $rc"
|
|
fi
|
|
|
|
updated_shasum=$(md5sum $tool)
|
|
if [ "$shasum" != "$updated_shasum" ]; then
|
|
echo "$tool had unsynced changes from lib, md5sum before and after running './util/update-modules $tool' is different"
|
|
exit 1
|
|
fi
|
|
done
|