Skip to content

Commit

Permalink
Fixes minor error in the get_commit_hash_excerpt
Browse files Browse the repository at this point in the history
Changes the updated function name in the `create_tag.sh` script so that
it prevents errors when running the script.
  • Loading branch information
cr2007 committed Aug 8, 2023
1 parent 08d17d1 commit cb8bb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function get_commit_hash_excerpt {
# Check if the commit hash is empty
if [ -z "$commit_hash_excerpt" ]; then
echo -e "\e[31;1mError:\e[0m Commit hash cannot be empty."
get_commit_hash
get_commit_hash_excerpt
elif [ ${#commit_hash_excerpt} -lt 7 ]; then
echo -e "\e[31;1mError:\e[0m Commit hash excerpt must be at least 7 characters long."
echo -e "Get the hash by running the following command: \e[1;34mgit log\e[0m"
Expand Down

0 comments on commit cb8bb24

Please sign in to comment.