File tree 8 files changed +12
-11
lines changed
packages/contracts-bedrock/scripts 8 files changed +12
-11
lines changed Original file line number Diff line number Diff line change
1
+ disable =SC2002
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ function check_prisma() {
18
18
echo " Checking Prisma Schema..."
19
19
cp " $PRISMA_FILE " " $TEMP_FILE "
20
20
npx prisma db pull --url " $DATABASE_URL " --schema " $TEMP_FILE "
21
- diff " $PRISMA_FILE " " $TEMP_FILE " > /dev/null
22
- if [ $? -eq 0 ] ; then
21
+
22
+ if diff " $PRISMA_FILE " " $TEMP_FILE " > /dev/null ; then
23
23
echo " Prisma Schema is up-to-date."
24
24
rm " $TEMP_FILE "
25
25
else
Original file line number Diff line number Diff line change 2
2
set -euo pipefail
3
3
4
4
SOURCE_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
5
- CHALLENGER_DIR=$( echo " ${SOURCE_DIR%/*/* } " )
6
- MONOREPO_DIR=$( echo " ${SOURCE_DIR%/*/*/* } " )
5
+ CHALLENGER_DIR=$( " ${SOURCE_DIR%/*/* } " )
6
+ MONOREPO_DIR=$( " ${SOURCE_DIR%/*/*/* } " )
7
7
8
8
# Check that the fault game address file exists
9
9
FAULT_GAME_ADDR_FILE=" $CHALLENGER_DIR /.fault-game-address"
Original file line number Diff line number Diff line change 3
3
set -euo pipefail
4
4
5
5
SOURCE_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
6
- CHALLENGER_DIR=$( echo " ${SOURCE_DIR%/*/* } " )
7
- MONOREPO_DIR=$( echo " ${SOURCE_DIR%/*/*/* } " )
6
+ CHALLENGER_DIR=" ${SOURCE_DIR%/*/* } "
7
+ MONOREPO_DIR=" ${SOURCE_DIR%/*/*/* } "
8
8
9
9
cd " $CHALLENGER_DIR "
10
10
make
Original file line number Diff line number Diff line change 2
2
set -euo pipefail
3
3
4
4
SOURCE_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
5
- CHALLENGER_DIR=$( echo " ${SOURCE_DIR%/*/* } " )
6
- MONOREPO_DIR=$( echo " ${SOURCE_DIR%/*/*/* } " )
5
+ CHALLENGER_DIR=$( " ${SOURCE_DIR%/*/* } " )
6
+ MONOREPO_DIR=$( " ${SOURCE_DIR%/*/*/* } " )
7
7
8
8
# Check that the fault game address file exists
9
9
FAULT_GAME_ADDR_FILE=" $CHALLENGER_DIR /.fault-game-address"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RPC="${1:?Must specify RPC address}"
6
6
FAULT_GAME_ADDRESS=" ${2:? Must specify game address} "
7
7
8
8
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
9
- DIR=$( echo " ${DIR%/*/* } " )
9
+ DIR=" ${DIR%/*/* } "
10
10
cd " $DIR " /packages/contracts-bedrock
11
11
12
12
forge script scripts/FaultDisputeGameViz.s.sol \
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ cleanup() {
31
31
wait_l2_outfile () {
32
32
i=1
33
33
while [ $i -le " $2 " ]; do
34
- i=$(( $ i + 1 ))
34
+ i=$(( i + 1 ))
35
35
36
36
if [ ! -f " $OUTFILE_L2 " ]; then
37
37
sleep " $1 "
Original file line number Diff line number Diff line change 57
57
# Findings to keep are output to the slither-report.json output file.
58
58
# Checking in a json file is cleaner than adding slither-disable comments throughout the codebase.
59
59
# See slither.config.json for slither settings and to disable specific detectors.
60
- if [[ ! -z " $TRIAGE_MODE " ]]; then
60
+ if [[ -n " $TRIAGE_MODE " ]]; then
61
61
echo " Running slither in triage mode"
62
62
SLITHER_OUTPUT=$( slither . --triage-mode --json $SLITHER_REPORT || true)
63
63
You can’t perform that action at this time.
0 commit comments