mcopy/scripts/pre_commit.sh

9 lines
167 B
Bash
Raw Normal View History

2023-02-19 06:18:03 +00:00
#!/bin/bash
2023-02-26 03:22:18 +00:00
branch_name=`sh ./scripts/branch_name.sh`
if [[ "${branch_name}" == "main" ]]; then
npm run patch
else
echo "no pre-commit on branch ${branch_name}"
fi