Files
cloud-services/pkg/can-go/tools/git-verify-nodiff/git-verify-nodiff.bash

10 lines
195 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
if [[ -n $(git status --porcelain) ]]; then
echo "Staging area is dirty, please add all files created by the build to .gitignore"
git diff --patch
exit 1
fi