pokecrystal/.github/checkdiff.sh

9 lines
144 B
Bash
Executable File

#!/bin/sh
set -e
if ! git diff-index --quiet HEAD --; then
echo 'Uncommitted changes detected:'
git diff-index HEAD --
return 1
fi