
# 输出
print() {
    color="[33m"
    if [ $2 ]; then
        color=$2;
    fi
    echo "\n\033$color$1\033[0m\n"
}


# 更新hook
cp -r hooks/ .git/hooks
if [ $? -eq 0 ]; then
    print "同步git hook成功"
else
   print "同步git hook失败" "[31m"
fi


