#!/bin/bash
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#run pre-commit hooks
set -e
L_GIT_DIR=$(git rev-parse --show-toplevel)
pushd $L_GIT_DIR
echo "=== check copyright ==="
./config/license_header_check.sh --hook
echo "=== check style ==="
./config/style_check_hook.sh
popd