mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 07:57:55 +00:00
1bb2e96501
* evm template integrated * workflows modified per template * workflow fixes
17 lines
375 B
Bash
17 lines
375 B
Bash
#!/bin/bash
|
|
|
|
find . -name "Cargo.toml" -not -path "*/target/*" -exec toml-sort {} \;
|
|
|
|
CMD="git diff --name-only"
|
|
|
|
stdbuf -oL $CMD | {
|
|
while IFS= read -r line; do
|
|
echo ║ $line
|
|
if [[ "$line" == *"Cargo.toml" ]]; then
|
|
echo "Check fails: $line"
|
|
echo "Please run './scripts/toml-sort.sh' to format Cargo.toml files properly."
|
|
exit 1
|
|
fi
|
|
done
|
|
}
|