We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef25d9a commit 6373a02Copy full SHA for 6373a02
1 file changed
commit
@@ -1,5 +1,7 @@
1
#!/usr/bin/env bash
2
+
3
echo 'Running commit script'
4
5
CURRENT_BRANCH_CMD="git rev-parse --abbrev-ref HEAD"
6
CURRENT_BRANCH=$(eval $CURRENT_BRANCH_CMD)
7
@@ -8,7 +10,7 @@ DEFAULT_COMMIT="git commit -m \"$1\""
8
10
9
11
if [ "$CURRENT_BRANCH" != "dev" ] && [ "$CURRENT_BRANCH" != "master" ] && [ "$CURRENT_BRANCH" != "qa" ] && [ "$CURRENT_BRANCH" != "uat" ] && [ "$CURRENT_BRANCH" != "staging" ]
12
then
- echo "Commiting with branch name-> $CURRENT_BRANCH"
13
+ echo "Commiting with branch name -> $CURRENT_BRANCH"
14
eval $COMMIT_WITH_BRANCH
15
else
16
echo "Commiting with default branch"
0 commit comments