2022-10-17 15:09:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2024-03-01 11:29:01 +00:00
|
|
|
# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
2023-06-07 13:32:36 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
2024-08-22 10:56:52 +00:00
|
|
|
git_output=$(git diff --ignore-submodules --name-only HEAD)
|
|
|
|
|
if [ -z "$git_output" ];
|
2022-10-17 15:09:23 +00:00
|
|
|
then
|
2024-08-22 10:56:52 +00:00
|
|
|
echo "✔ working directory is clean"
|
2022-10-17 15:09:23 +00:00
|
|
|
else
|
2024-08-22 10:56:52 +00:00
|
|
|
echo "✘ found diff:"
|
|
|
|
|
echo "$git_output"
|
2022-10-17 15:09:23 +00:00
|
|
|
exit 1
|
|
|
|
|
fi
|