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