This commit is contained in:
Martin Fencl
2022-07-13 18:43:52 +02:00
commit d9bee53a00
22 changed files with 419 additions and 0 deletions

16
scripts/create_change_file.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "x${BRANCH}" != "x" ] && [ "${BRANCH}" != "HEAD" ]
then
FILE="incoming_changes/${BRANCH}.md"
if [ -e $FILE ]
then
echo "file '${FILE}' already exists"
else
touch "${FILE}"
echo "file '${FILE}' created"
fi
else
echo "branch name '${BRANCH}' is not valid"
fi