mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16988] Apply fixes suggested by shellcheck
PHPBB3-16988
This commit is contained in:
parent
cd9aea32b9
commit
0d84769d66
1 changed files with 5 additions and 5 deletions
|
@ -31,17 +31,17 @@ branch="$(echo "$branch" | sed "s/refs\/heads\///g")"
|
||||||
if [ "$2" = "" ]
|
if [ "$2" = "" ]
|
||||||
then
|
then
|
||||||
tail="";
|
tail="";
|
||||||
ticket_id=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\3/gm;t;d' <<< $branch);
|
ticket_id=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\3/gm;t;d' <<< "$branch");
|
||||||
branch_title=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\1\2\3/gm;t;d' <<< $branch);
|
branch_title=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\1\2\3/gm;t;d' <<< "$branch");
|
||||||
|
|
||||||
if [ "security/" = "$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\2/gm;t;d' <<< $branch)" ];
|
if [ "security/" = "$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\2/gm;t;d' <<< "$branch")" ];
|
||||||
then
|
then
|
||||||
tail="$(printf "\n\nSECURITY-$ticket_id")";
|
tail="$(printf '\n\nSECURITY-%s' "$ticket_id")";
|
||||||
else
|
else
|
||||||
# Branch is prefixed with 'ticket/', append ticket ID to message
|
# Branch is prefixed with 'ticket/', append ticket ID to message
|
||||||
if [ "$branch" != "${branch##ticket/}" ];
|
if [ "$branch" != "${branch##ticket/}" ];
|
||||||
then
|
then
|
||||||
tail="$(printf "\n\nPHPBB3-$ticket_id")";
|
tail="$(printf '\n\nPHPBB3-%s' "$ticket_id")";
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue