Skip to content

Commit 017a933

Browse files
committed
Remove dup lines
1 parent f84de88 commit 017a933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tests/upload_rcpsnaps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ for FILE_PATH in "${DIR_PATH}"/*.rpcsnap.json; do
4646
fi
4747
done
4848

49-
# Sort the file lexicographically
50-
sort -o "$TEST_SNAPSHOTS" "$TEST_SNAPSHOTS"
49+
# Sort the file in lexicographical order and remove dup lines
50+
sort -u -o "$TEST_SNAPSHOTS" "$TEST_SNAPSHOTS"
5151

5252
read -r -p "🧪 Do you want to run 'cargo test --lib -- --test rpc_regression_tests --nocapture'? [y/N] " answer
5353
case "$answer" in

0 commit comments

Comments
 (0)