1#!/bin/sh 2# Owner: Hanming Zeng (hanmeow@) 3# Running this script will uninstall git pre-commit hook 4 5# directory where this script is in 6DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 7 8rm "${DIR}/../.git/hooks/pre-commit" 9 10# Track Usage 11MY_PATH=${PWD//\//"%2F"} 12curl "https://us-central1-si-sw-eng-prod-team.cloudfunctions.net/trackAutoFormatUsage?user=${USER}&pwd=${MY_PATH}×tamp=$(date +%s)&type=UNINSTALL" > /dev/null 2>&1 13