Skip to content

Commit

Permalink
Improve else condition of branch determination
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Apr 21, 2020
1 parent 0343171 commit 401c029
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions advanced/Scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,9 @@ getLocalBranch(){
else
echo "${branch} "
fi
elif [[ "${branch}" == "${DEFAULT}" ]]; then
echo "ERROR"
return 1
else
echo "No Checked out branch"
# Branch started in "v"
echo "release "
fi
return 0
}
Expand Down

0 comments on commit 401c029

Please sign in to comment.