Skip to content

Commit

Permalink
Add which zk supervisor
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Sep 17, 2024
1 parent ad3a5c5 commit 5824fc0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ RED='\033[0;31m'
NC='\033[0m' # No Color

# Check that prettier formatting rules are not violated.
if ! zk_supervisor fmt --check; then
echo -e "${RED}Push error!${NC}"
echo "Please format the code via 'zks fmt', cannot push unformatted code"
exit 1
if which zk_supervisor1 >/dev/null; then
if ! zk_supervisor fmt --check; then
echo -e "${RED}Push error!${NC}"
echo "Please format the code via 'zks fmt', cannot push unformatted code"
exit 1
fi
else
echo "Please install zk_toolbox using zkup https://github.com/matter-labs/zksync-era/tree/main/zk_toolbox/zkup and later run
./bin/zkt from zksync-era repository"
fi

0 comments on commit 5824fc0

Please sign in to comment.