mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
19 lines
440 B
Bash
Executable File
19 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e
|
|
cd $(dirname $0)
|
|
cd ..
|
|
|
|
for i in cw_core cw_monero cw_wownero cw_bitcoin cw_bitcoin_cash cw_dogecoin cw_evm cw_nano;
|
|
do
|
|
dart fix --apply $i/
|
|
dart format --line-length=100 $i/
|
|
if [[ ! "x$ABORT_ON_CHANGE" == "x" ]];
|
|
then
|
|
if [[ ! -z "$(git status --porcelain -- $(find $i))" ]];
|
|
then
|
|
echo "Please run scripts/lint.sh ($i has changes)"
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|