Skip to content

Commit

Permalink
Uppdated string handling if empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Nov 6, 2023
1 parent c720e9e commit b1c04ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/checkPullRequestTitle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ _throw() {

string="$*"


echo "Validating '$string'..."
if [[ ${#string} == 0 ]]; then echo "SUCCESS (Empty name)"; exit 0; fi

if [[ ${#string} -lt 20 ]]; then _throw "Short name"; fi
if [[ $string == "Update cba_settings.sqf" ]]; then _throw "Sad name"; fi
Expand Down

0 comments on commit b1c04ce

Please sign in to comment.