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
#!/usr/bin/env bash | |
if [ ! -x .git/hooks/commit-msg ] || [ ! -f .git/hooks/commit-msg ] || ! cmp ./hooks/commit-msg.sh .git/hooks/commit-msg | |
then | |
echo -e "\033[33m Setting Up Git commit Hook..." | |
mkdir -p .git/hooks/ | |
cp ./hooks/commit-msg.sh .git/hooks/commit-msg | |
chmod +x .git/hooks/commit-msg | |
echo -e "\033[32m Done" | |
echo -e "\033[33m You can make commit now." |
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
options: | |
docker: true | |
definitions: | |
services: | |
docker: | |
memory: 3072 | |
pipelines: | |
custom: |
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
#!/bin/bash | |
major() { | |
if IFS=. read -r major rest <version.txt || [ -n "$major" ]; then | |
echo "$((major + 1)).0.0.$1" >"version.txt" | |
else | |
echo "ERROR: Unable to read version number from version.txt" >&2 | |
exit 1 | |
fi | |
} |