mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-18 02:06:49 +08:00
Add: github action libmodulesupdated
This commit is contained in:
16
util/check_bin_md5sum
Executable file
16
util/check_bin_md5sum
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user