-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
- Loading branch information
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
OUTPUT_DIR=${1:-sample-configurations} | ||
|
||
GIT_DIFF=$(git diff HEAD -- $OUTPUT_DIR) | ||
echo "git diff of configurations with HEAD:" | ||
echo "$GIT_DIFF" | ||
|
||
function echoWarning() { | ||
LIGHT_YELLOW='\033[1;33m' | ||
NC='\033[0m' # No Color | ||
echo -e "${LIGHT_YELLOW}${1}${NC}" | ||
} | ||
|
||
if [ ! -z "$GIT_DIFF" ]; then | ||
echoWarning "At least one of the configs in the plugins should have changed." | ||
echoWarning "Please run 'tox -e gen-configs' to ensure that the sample-configurations are correctly generated!" | ||
echoWarning "After that commit the generated sample-configurations to remove this error." | ||
exit 1 | ||
fi | ||
|
||
echo "sample configurations up to date with configs in plugin directories" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters